Check for missing args when one is required

This fixes a segv that currently happens if you provide an option that requires an argument but don't provide the argument.