Skip to content

Support an argument as a flag or option #829

@bkhouri

Description

@bkhouri

As a command line tool developer, I want to be able to have an argument defined as a flag or as an option.

Our CLI tool currently has a Flag argument. I want to expand this argument to be an option, but I want to preserve backward compatibility. For example, if --show-bin-path is provided, I want it to executed --show-bin-path text, but I also want to support --show-bin-path json

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