mando icon indicating copy to clipboard operation
mando copied to clipboard

Automatically support arguments and command names with dashed variants?

Open rhencke opened this issue 4 years ago • 1 comments

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!)

rhencke avatar May 13 '20 14:05 rhencke

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!

rubik avatar Sep 16 '20 09:09 rubik