Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sylvain303 opened this issue Aug 9, 2019 · 1 comment

Comments

@Sylvain303
Copy link
Collaborator

Sylvain303 commented Aug 9, 2019

Following #35: this is a twin issue with the project docopt.sh - twin issue andsens/docopt.sh#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
Copy link
Collaborator Author

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

Sylvain303 pushed a commit to Sylvain303/docopts that referenced this issue Aug 11, 2019
@Sylvain303 Sylvain303 changed the title [docopt.sh alternative] provide name mangling compatible for doctop.sh [docopt.sh alternative] provide name mangling compatible for docopt.sh Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant