Projects / bash argsparse

bash argsparse

bash argsparse is a high-level argument parsing library for bash. Its purpose is to replace the option parsing and usage describing functions commonly rewritten in all scripts. Its features include automatic help message generation, user input checking (type checking, enumerations, etc.), and option properties (mandatory options, option aliases, options excluding each others, etc.). It is implemented for bash version 4. Prior versions of bash will fail at interpreting the code.

Operating Systems

Recent releases

  •  26 Mar 2013 12:41

    Release Notes: Scripts without any parameter are now accepted by argsparse. A few new types have been implemented ("port", "portnumber", "username", and "group"). An RPM spec file and a debian directory are now provided. Documentation has been updated.

    •  13 Mar 2013 13:23

      Release Notes: A new "cumulativeset" (same as "cumulative" but only keeps uniq values) property has been implemented. The short usage string is now line-wrapped so it fits in standard-sized consoles. The code should also be more compliant with the "errexit" shell setting. Tutorials and embedded documentation have been updated (and sometimes fixed).

      •  28 Feb 2013 16:03

        Release Notes: A new "cumulative" option property has been implemented. The documentation has been updated accordingly.

        •  27 Feb 2013 13:53

          Release Notes: Documentation was added as a bunch of tutorial scripts, replacing a single uncommented, obfuscated test script. New users should find it much easier to learn the library.


          Project Spotlight


          A Fluent OpenStack client API for Java.


          Project Spotlight

          TurnKey TWiki Appliance

          A TWiki appliance that is easy to use and lightweight.