Argbash 2.4.0

Do you write Bash scripts that are supposed to accept arguments? Aren't you tired of that? getopt is discouraged, getopts doesn't support long options, there is no widely-accepted Bash module to do the task and some solutions don't work on all platforms (Linux, OSX, MSW)... Give a Argbash a try, benefit from the online generator and stop being terrorized by those pesky arguments!

Tags bash shell code-generator developers
License BSDL
State stable

Recent Releases

2.4.010 Apr 2017 17:41 major feature: If you let argbash to generate your argument parsing code, it will know all the tricks that scripts that use getopt. New features: * Implemented getopts-like behavior (so e.g. `-gIinclude` equals to `-g -I include` etc.). * Improved feedback in case of mismatch between expected / received arguments. Bugfixes: * Argbash-powered scripts with positional arguments can be sourced consecutively without having to manually perform variable reset. * Fixed issue #7 with newlines in help strings.
2.3.007 Feb 2017 21:41 minor feature: New features: Behavior that raises an error when a script argument's value looks like option - enabled by the ARG_RESTRICT_VALUES. New minor features: argbash provides more useful feedback in case of unmatched square brackets in the input argbash in standalone mode now uses the more fresh of the parsing code .sh or .m4 templates (was undocumented, but the .sh one was always preferred over the .m4).
2.2.318 Dec 2016 03:16 minor feature: Added the --mode option to argbash-init. Improved help messages for arguments with typed values (experimental). quoting-related of the underlying code.
2.2.223 Nov 2016 20:45 minor feature: KILLER FEATURE: Introduced the argbash-init simple template generator. argbash can read from stdin. ARG_HELP gains second argument. Preview (preliminary) support for argument values types (a.k.a. typed arguments). Improved defaults indications in help messages. Overall internal code beautification.
2.2.009 Nov 2016 18:25 minor feature: KILLER FEATURE: Introduced the argbash-init simple template generator. argbash can read from stdin. ARG_HELP gains second argument. Preview (preliminary) support for argument values types (a.k.a. typed arguments). Improved defaults indications in help messages. Overall internal code beautification.
2.1.127 Aug 2016 19:24 major feature: Support for configuration of argument-value delimiters (space and equal sign are supported: --some-opt=value as well as --some-opt value can be configured to work), various bug fixes.
2.0.003 Aug 2016 20:45 minor feature: The variable name in which argument values are stored is different (lowercase) as the bash style guides recommend. a error handling in the argbash-1to2 script.
1.3.025 Jul 2016 08:05 minor feature: Support for infinitely many (and leftover) arguments. Partial POSIX shell compatibility. definitions in the parsing part of the script. Expanded documentation --- expanded info about related projects.
1.2.009 Jul 2016 09:25 minor feature: Support for repeated arguments, added specialized macro for --verbose. Support for double dash (separating positional and optional arguments). Support for multi-valued arguments (with defaults). Improved generated code so users get more descriptive messages when something goes wrong. The bash code tries to be minimal - only features that are used are supported. Support for wrapping of other Argbash scripts. Support for repeated arguments (s.a. argument -I of gcc). installation when ROOT variable was not treated properly. Improved error reports when number of positional args doesn't match. Improved m4s list implementation. Added m4_list_contains.
1.1.006 Sep 2015 23:02 major feature: New features: Support for positional args with default values. "Intelligent" shell auto-quoting of macro arguments. Improvement of standalone parsing code mode.
1.0.125 Aug 2015 03:15 minor feature: Updated PKGBUILD generation.
1.0.021 Aug 2015 11:05 minor feature: