Skip to content

Support abbreviations for options? #37

@clagraff

Description

@clagraff

I am leaving this as an issue to be considered later.
See: https://docs.python.org/dev/library/argparse.html#allow-abbrev

Python3's argparse (by default) supports using abbreviations of options. So, for instance,

python some_cli.py --f
python some_cli.py --foo
python some_cli.py --foobar

are all acceptable values for the --foobar long-named option.

I am not convinced I actually want to support that. I can understand the benefit of not having to type out a very long option name. But at the same time, not supporting this feature could help inspire avoid such long names...

Gonna think about this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions