argp.sh(1) is a bash(1) wrapper around getopt(1) to make life much easier for script developers. It's used in most of my scripts - look at them for examples of use. There's just one essential file to install - the script itself. Put it somewhere on your path, typically in
To use argp.sh(1), a script pipes in a description of its options and gets back the variables as processed by getopt(1) - as a plus it also provides automatic help and man page production.
It buys you:
Note that argp.sh(1) deprecates an older script that I wrote called process-getopt(1).
There is also a 'c' version of argp.sh(1) in case you need speed.
To get the latest version of the full source code:
svn checkout svn://svn.code.sf.net/p/argpsh/code/trunk argpsh-code