getoptions
getoptions copied to clipboard
An elegant option/argument parser for shell scripts (full support for bash and all POSIX shells)
I've noticed that getoptions fails to set a constant for an option when the option name contains hyphens, such as `--foo-bar`.
When I use getoptions, I always have to manually ignore [`SC2004`](https://www.shellcheck.net/wiki/SC2004) that [ShellCheck](https://github.com/koalaman/shellcheck) points out. ```shell In foo line 62: REST="${REST} \"\${$(($OPTIND-$#))}\"" ^-----^ SC2004 (style): $/${} is unnecessary on arithmetic...
As of https://github.com/Linuxbrew/brew/commit/93389fde63974f096156344e281610acec44130c, Linuxbrew has been merged upstream into Homebrew. The Homebrew homepage (https://brew.sh/) now describes Homebrew as "The Missing Package Manager for macOS (or Linux)"
Hi, the script is great already but it would be completed if it can support multiple value for an option when working would multiple input file for example: myscript --file...
I have a command that can be invoked like so: ``` my_command --foo=bar "first_arg" "second_arg" ``` (first_arg and second_arg are arbitrary strings) My parser definition looks like this: ```bash parser_definition()...