docopt.sh - Bash argument parser generator.
Project description
docopt.sh
This software is still in early alpha. Not for production use.
docopt.sh - Bash argument parser generator.
This program looks for a docopt usage string
in a script and appends a matching parser to it.
Usage:
docopt.sh generate-library
docopt.sh [options] [SCRIPT]
Options:
--prefix PREFIX Parameter variable name prefix [default: ]
--line-length N Max line length when minifying (0 to disable) [default: 80]
--parser Output parser instead of inserting it in the script
--library -l PATH Generates only the dynamic part of the parser and includes
the static parts from a file located at PATH,
use `generate-library` to create that file.
-h --help This help message
--version Version of this program
Notes:
You can pass the script on stdin as well,
docopt.sh will then output the modified script to stdout.
If the script has a $version defined anywhere before the invocation of docopt
--version will automatically output the value of that variable.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docopt-sh-0.8.0.tar.gz
(20.8 kB
view hashes)
Built Distribution
docopt_sh-0.8.0-py3-none-any.whl
(44.3 kB
view hashes)
Close
Hashes for docopt_sh-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4b4fd05b9f912581229a5da6abf0659548fb7fa9cf42e891752cde5893de6f9 |
|
MD5 | c3b4dbded7e2d59554104a974986ab3a |
|
BLAKE2b-256 | f080f56dbe0e9f52fd04b95e00f0e4c3093686cf350bcae2df55abeb6edb19e4 |