75lb / command-line-args

A mature, feature-complete library to parse command-line options.
MIT License
679 stars 107 forks source link

Missing argument should be error? #112

Closed nottledim closed 4 years ago

nottledim commented 4 years ago

This function returns null if the argument to an option omited. Should not an option which requires an argument return an error if the argument is missing?

75lb commented 4 years ago

Whether an argument is required or not is decided by you, not the library.. there is a validation example here: https://github.com/75lb/command-line-args/wiki/Validation