Skip to content

Add alias support for subcommand. #15

@XericZephyr

Description

@XericZephyr

For subcommand, we add an option alias for it, e.g.,

import smile as sm
with sm.app.flags.Subcommand("checkout", dest="action", aliases=["co"]):
    pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions