75lb / command-line-args

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

Support dense getopt notation (e.g. -XPOST) #94

Open 75lb opened 5 years ago

75lb commented 5 years ago

Currently, you must include a space between short option and value, i.e.

$ example -i Filename.sh

To be more like getopt, make the space between option and value optional. I.e. this should work:

$ example -iFilename.sh

Example getopt commands highlighting this behaviour:

$ getopt i: -i filename
 -i filename --

$ getopt i: -ifilename
 -i filename --