chevex/yargs — pull request #25 by chrisn (2014-06-16 07:21:31+00:00)
Title: Added requiresArg option, for options that require values

This change adds a `.requiresArg()` method, which is useful for reporting an error when an option is given that does not have an accompanying option value. As an example, with this change the command line `myprog --input /path/to/my/file` reports and error if `--input` is present but the file name is missing.