parse getopt-style help texts from someprogram --help
return one of
- json
- argument parser for bash. useful to write program wrappers in bash: modify arguments, run the program in a sandbox (bubblewrap), run code before and after the program, trap exit to handle program crashes, ...
see test/update.sh
see test/cases/
- RobSis/zsh-completion-generator - parse help texts and generate zsh shell completions
- matejak/argbash - generate argument parsers for bash
- ko1nksm/getoptions - An elegant option/argument parser for shell scripts (full support for bash and all POSIX shells)
- Anvil/bash-argsparse - An high level argument parsing library for bash
- agriffis/pure-getopt - getopt in pure Bash
- moebrowne/bash-argument-parser - BASH Argument Parser allows for easy access to command line arguments
- reconquest/opts.bash - Missing very simple option parser for bash
- write an actual parser for helptext: pyparsing, tree-sitter, ...