Compare Argbash with other argument parsing utilities
masterIf you are deciding between Argbash and other tools, consider these comparisons:
- vs. Python
argparse: Argbash is native tobash(unlikeargparsewhich requires Python) and handles boolean options more effectively. Argbash also provides wrapping functionality. - vs.
shflags:shflagshas platform limitations (doesn't work with Windowsbashand lacks long option support on OSX), whereas Argbash works consistently across all platforms that havebash. - vs.
getopts: Whilegetoptsis abashbuiltin that supports short options,argbash>=2.7.0can automatically generate code that usesgetoptsinPOSIXmode, removing the need to write manualgetoptslogic. - vs.
EasyOptions: UnlikeEasyOptions, which requires distributingeasyoptions.shwith your script, Argbash offers an option to produce "battery-included" scripts (self-contained). Argbash also provides more advanced features. - vs.
bash-modules:bash-modulesrequires the library to be available at runtime, whereas Argbash can produce battery-included scripts. Argbash also provides superior documentation and examples. - vs.
docopt: Argbash is compatible with thedocoptapproach. You can use thedocoptstyle of defining interfaces via help messages while using Argbash.