{"repo":"Anvil/bash-argsparse","free":true,"listed":false,"github":"https://github.com/Anvil/bash-argsparse","clone":"git clone https://github.com/Anvil/bash-argsparse.git","description":"An high level argument parsing library for bash","language":"Shell","stars":196,"topics":["shell","argsparse","argparse","bash","getopt","library","argument","getopts","command-line-parser","command"],"license":"WTFPL","category":"cli-tools","readme_excerpt":"bash-argsparse ============== An high level argument parsing library for bash. Inspired, by the python argparse module, bash-argsparse purpose is to replace the option-parsing and usage-describing functions commonly rewritten in all scripts. This library is implemented for GNU bash version = 4.2. Prior versions of bash will fail at interpreting that code. Online documentation Doxygen documentation is available online here. Tarballs Though Bash Argsparse is hosted at github, you can download tarballs at the following URL: http://argsparse.livna.org/ RPMS Though you can build your own package using the provided spec file, a bash-argsparse package is currently available in fedora repositories, for all releases from fedora 19 to rawhide. Ditto for RHEL/Centos 6 & 7, through the EPEL repository. Features The argsparse library offers to script developpers the following features: Automatic help message generation Simple option declarations Different option types: simple, with value, with cumulative (uniq or not) values User-input checkings (either by type, enumerations or custom checking) Hook settings Option properties making them excluding each other, aliasing other options, or (sic) non-optional. Automatic bash completion generation. Requirements, Bash settings A basic argsparse run requires no external commands except the quite-common \"getopt\" command. Some argsparse-built-in type checkings may require some other (like \"host\" and \"getent\") but you do not have to use those types.","default_branch":null,"files":null,"tree":[],"storefront":"/r/Anvil","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Anvil/bash-argsparse/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}