Argbash Versions Save

Bash argument parsing code generator

2.4.0

7 years ago

The main highlight of this version of argbash is the getopts feature parity - the generated code is supposed to support all features of getopts related to short options.

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.
  • The argbash.spec file has been corrected, so there is a hope that Argbash will make it to Fedora Linux distribution.

2.3.0

7 years ago

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.3

7 years ago

New minor features:

  • argbash tries to warn you when it looks like you have made a typo when attempting to use macros.
  • argbash supports commented mode, when the parsing code is explained in detail

Bugfixes:

  • Fixed handling of help messages in case of missing ARG_HELP macro

2.2.2

7 years ago

New minor features:

  • Added the --mode option to argbash-init.
  • Improved help messages for arguments with typed values (experimental).

Bugfixes:

  • Fixed quoting-related issues of the underlying code.

(The release 2.2.1 was accidentally skipped).

2.2.0

7 years ago

New features:

  • 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)

Bugfixes:

  • Improved defaults indications in help messages.
  • Overall internal code beautification

2.1.1

7 years ago

Bugfixes:

  • Fixed help messages for the repeated optional args and added connected it to the delim choice.
  • Fixed the installation process in resources/Makefile

2.1.0

7 years ago

Incompatible changes (minor):

  • argbash option --standalone has been renamed to --library.

New features:

  • Support for configuration of argument-value delimiters (space and equal sign are supported - --some-opt=value as well as --some-opt value may work)

Bugfixes:

  • Fixed handling of argbash-xtoy in Makefiles for tests/packaging.
  • Added the die function to all generated scripts.
  • Beautification of the underlying code.
  • Documentation improvements in the Examples section.

2.0.0

7 years ago

This release descends from 1.4.2.

Incompatible changes:

  • The variable name in which argument values are stored is different (lowercase) as the bash style guides recommend.

Bugfixes:

  • Fixed a error handling bug in the argbash-1to2 script.

1.4.2

7 years ago

New features:

  • Added the ARGBASH_SET_INDENT macro for indentation control.
  • Created scripts are more compliant to the https://www.shellcheck.net/ tool.
  • Introduced argbash-1to2 script for migration to Argbash2

Bugfixes:

  • Fixed some errors related to displaying help.
  • Fixed spurious default to ARG_POSITIONAL_INF.
  • Fixed handling of empty defaults.
  • Fixed broken Makefile that prevented (un)installs. (got broken in 1.4.0, fixed in 1.4.1)
  • Fixed broken argbash-1to2 script (broken since 1.4.0)

1.3.0

7 years ago

New features:

  • Support for infinitely many (and leftover) arguments.
  • Partial POSIX shell compatibility.

Bugfixes:

  • Fixed definitions in the parsing part of the script.
  • Expanded documentation --- expanded info about related projects.