Skip to content

Single @app.command() doesn't require me to pass function name in CLI #315

@fschlz

Description

@fschlz

If I only define one @app.command I cannot pass the corresponding function name as a command to the CLI

Instead of
python main.py hello James

I have to use
python main.py James

Which is inconsistent with the behavior of the package when I have more than one @app.command

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