docopts
docopts copied to clipboard
Shell interpreter for docopt, the command-line interface description language.
## Summary Add a ToC to the `README` for quicker / easier navigation and at-a-glance view of the docs ## Details - For instance, easier, as in, installation is at...
## Summary Add a standard `CONTRIBUTING.md` file to the root that just references `docs/developer.md` for better accessibility ## Details - `CONTRIBUTING.md` is a standard OSS convention - and GitHub recognizes...
The last example, which uses an argument with multiple values, can be made more terse by using a `for` loop. I think this is an improvement, but whether others agree...
I'm trying to separate *positional* arguments from *extra* arguments, like this: ```bash #!/usr/bin/env bash help=" Usage: cli [...] [--] [...] " docopts --no-declare -A args -h "$help" : "$@" ```...
This is not what I was expecting: ``` source "$(command -v docopts).sh" declare -A args args['FILE,#']=2 args['FILE,0']=somefile1 args['FILE,1']='some file with space inside' array=( $(docopt_get_values args FILE) ) if [[ "${array[1]}"...
adds message a warning to address #70
Applying #65 on top of latest master `62aed3d4cb02f36864ace03ecb89f8a200e311ca`, as I am unable to build otherwise: ``` not ok 24 docopt_get_values # (in test file ./docopts.bats, line 120) # `[[ ${#array[@]}...
This switches to [Go modules](https://go.dev/blog/using-go-modules), which have now been the standard for dependency management in Go codebases for a while.
Java and other software has key/value pair parameters, e.g. the `lang` property: java -Dlang=en -cp some.jar input output Another example: xsltproc --param lang en id.xsl in.xml The parameter name can...