Following docopt/docopts#35 : this is a twin issue with the project docopts - twin docopt/docopts#36
docopts use can use global vars with or without prefix the names in the option are converted to mangled names (code here) (which is compatible to old python's output, old code here)
Current docopt.sh code
docopts README describing the manged argument conversion.
In order to improve compatibility we need to output compatible variables name from docopt.sh
Usage could be:
DOC="
Usage: pipo new [--switch <value>]
"
DOCOPT_COMPAT_DOCOPTS=mangled
docopt "$@"
compatible Outputs:
new=true
switch=true
value='some_value'
Following docopt/docopts#35 : this is a twin issue with the project docopts - twin docopt/docopts#36
docoptsuse can use global vars with or without prefix the names in the option are converted to mangled names (code here) (which is compatible to old python's output, old code here)Current docopt.sh code
docopts README describing the manged argument conversion.
In order to improve compatibility we need to output compatible variables name from
docopt.shUsage could be:
compatible Outputs: