Skip to content

No way to add shortened options (e.g. '-R/--recursive') #108

@alexpilk

Description

@alexpilk

Would it be possible to create short names for default boolean arguments?

For example, if you have the following function:

def hello(greeting, uppercase=False):
    greeting = greeting.upper() if uppercase else greeting
    print(greeting)

It would be nice to have the following usages:
python hello.py Hey! -u
python hello.py Hey! --uppercase

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions