I want to support both short and long options in bash
scripts, so one can:
$ foo -ax --long-key val -b -y SOME FILE NAMES
is it possible?
I want to support both short and long options in bash
scripts, so one can:
$ foo -ax --long-key val -b -y SOME FILE NAMES
is it possible?
getopt
supports long options.http://man7.org/linux/man-pages/man1/getopt.1.html
Here is an example using your arguments:
Output of
$ foo -ax --long-key val -b -y SOME FILE NAMES
: