Tagged Questions
6
votes
3answers
316 views
getopt, getopts or manual parsing - what to use when I want to support both short and long options?
Currently I'm writing a Bash script which has the following requirements:
it should run on a wide variety of Unix/Linux platforms
it should support both short and (GNU) long options
I know that ...
5
votes
1answer
202 views
In the usage string of my custom shell script, shall I also display --help and --version?
I'm currently developing a shell script, called up, which shows a usage string on the commandline when called with --help. The output looks like this:
$ up --help
usage: up [-n ...