75lb / command-line-args

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

Support numeric aliases, e.g. -1 #96

Open 75lb opened 5 years ago

75lb commented 5 years ago

When parsing an argv value of -1 (minus one), if an option definition with an alias value of of '1' exists then parse -1 as that option. If the option definition does not exist, then parse -1 as the negative value -1.