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

Automatically support arguments and command names with dashed variants? #49

Open
rhencke opened this issue May 13, 2020 · 1 comment
Open

Comments

@rhencke
Copy link

rhencke commented May 13, 2020

In most command-line interfaces, dashes are used in place of underscores, for both arguments and subcommand names. (git cherry-pick, svn co --ignore-externals, etc.)

This can be done in mando, but it requires extra steps. Dashed arguments can be achieved through adding a documentation string such as :param --ignore-externals: for the above example, and commands can be augmented with something such as @command("cherry-pick") for the above example.

It would be nice to have some method of achieving this automatically.

(p.s. mando is awesome!)

@rubik
Copy link
Owner

rubik commented Sep 16, 2020

Hi Robert, thank you for your kind words! This is something that I wanted to add myself, but now I don't have time to allocate to this project. I'll be happy to review any PR though!

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

2 participants