Skip to content

USAGE command name should always reflect the actual binary name #295

Open
@eaigner

Description

@eaigner

The default USAGE output derives the usage command name from the ParsableCommand type name. Now this might be correct or not. The "correct" way would be to always use the last path component of argv[0], as it would also show the correct string in case the build product name is different from the class name or the user renames the tool.

While there is _commandName I can use to override this, it is marked as for internal use only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions