Skip to content

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

@rhencke

Description

@rhencke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions