Skip to content

Use compact valueName by default #37

Open
@ddunbar

Description

@ddunbar

By default, ArgumentParser currently uses a ArgumentHelp.valueName derived from the option name. While this is a nice standard default, I think it often leads to overly verbose --help text, and customizing with ArgumentHelp makes declaration a little verbose (super kudos for having it possible in v0.0.1 though!).

I think there is an argument to be made for having ArgumentParser use a default value name for well-known and common types, for example, using N for integral types.

One upside of this is that it helps communicate the expected type.

I can understand if this is perceived to be too much magic, though...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions