docopts icon indicating copy to clipboard operation
docopts copied to clipboard

[docopt.sh alternative] provide name mangling compatible for docopt.sh

Open Sylvain303 opened this issue 6 years ago • 1 comments

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

Prototype is here

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'

Sylvain303 avatar Aug 09 '19 06:08 Sylvain303

uploaded binaries: https://github.com/Sylvain303/docopts/releases release v0.6.4-alpha1

Sylvain303 avatar Aug 09 '19 07:08 Sylvain303