docopts
docopts copied to clipboard
[docopt.sh alternative] provide name mangling compatible for docopt.sh
Following #35: this is a twin issue with the project docopt.sh - twin issue https://github.com/andsens/docopt.sh/issues/7
docopt.sh use global vars with or without prefix the non letter, number characters are converted to underscore (code here)
In order to improve compatibility we need to output compatible variables name from docopts
Output code is here
Usage:
./docopts --docopt_sh -h "Usage: pipo new [--switch <value>]" : new --switch some_value
Outputs:
new=true
__switch=true
_value_='some_value'
uploaded binaries: https://github.com/Sylvain303/docopts/releases release v0.6.4-alpha1