Skip to content

Add ability to infer root command name from CLI args #633

@bisgardo

Description

@bisgardo

The command name of a (Async)ParsableCommand is inferred from the name of the struct by default.

For the root command, this name is never actually part of a command; it's only used in the usage string.
You can of course override it manually, but you never know if the executable gets renamed.

In my understanding, it's common for the usage string to use the actual name the command was invoked with (i.e. argv[0] in C terms). And I also think that's the only appropriate default behavior.

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