command-line-args
command-line-args copied to clipboard
Support dense getopt notation (e.g. -XPOST)
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 --