Skip to content

Commit 74d3594

Browse files
committed
docs: Add prior art matrix
1 parent 3639c5c commit 74d3594

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,25 @@ A cute little Bash library for blazing fast argument parsing
77
- Uses only builtins
88
- Uses no subshells
99
- Simple API
10-
- More featureful than [opts.bash](https://github.com/reconquest/opts.bash) and cleaner / easier to use than [bash_option_parser](https://github.com/MihirLuthra/bash_option_parser), [longoption](https://github.com/team-lab/longoption), more recent than [easyoptions](https://github.com/renatosilva/easyoptions), and no weird codegen step like [argbash](https://github.com/matejak/argbash) or [bash-argsparse](https://github.com/Anvil/bash-argsparse)
10+
11+
TODO: add types of options to table
12+
13+
| Software | No Codegen | No getopts/getopt | Preserves arguments | At least some testing
14+
| - | - | - | - | - |
15+
| hyperupcall/bash-args | Yes | Yes | Yes | Yes
16+
| [argbash] | No | No | ?
17+
| [bash-argsparse] | No | No | ?
18+
| [easyoptions] | No | No | ?
19+
| [longoption] | Yes | ? | ?
20+
| [bash_option_parser] | Yes | Yes | Yes | No
21+
| [opts.bash] | Yes | No | No | Yes
22+
23+
[argbash]: https://github.com/matejak/argbash
24+
[bash-argsparse]: https://github.com/Anvil/bash-argsparse
25+
[easyoptions]: https://github.com/renatosilva/easyoptions
26+
[longoption]: https://github.com/team-lab/longoption
27+
[bash_option_parser]: https://github.com/MihirLuthra/bash_option_parser
28+
[opts.bash]: https://github.com/reconquest/opts.bash
1129

1230
## Installation
1331

@@ -30,7 +48,7 @@ declare -A args=()
3048

3149
# Pass through your command line arguments to 'args'
3250
# Pass your argument specification through stdin (see more examples below)
33-
source bash-args parse parse "$@" <<-"EOF"
51+
source bash-args parse "$@" <<-"EOF"
3452
@flag [port.p] {3000} - The port to open on
3553
EOF
3654

0 commit comments

Comments
 (0)