-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Description
As far as I can tell, there is no way for me to inject a placeholder for the actual program name into the Usage instructions used by all of the commands.
If I have subcommands added, then the default help text produces a Usage line that looks something like this:
Usage: [command] [-h|--help] [--version]
If I run git -h on my terminal, the usage line actually includes the git command itself (and the subcommands likewise prefix themselves with the actual program name). I don't seem to be able to reproduce that kind of behavior.
usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--no-lazy-fetch]
[--no-optional-locks] [--no-advice] [--bare] [--git-dir=<path>]
[--work-tree=<path>] [--namespace=<name>] [--config-env=<name>=<envvar>]
<command> [<args>]
Perhaps there could be an assembly attribute folks could use to specify this? It should already be accessible from MSBuild's project properties though if people are using AssemblyName or ToolCommandName to specify the name of the executable.
Orcomp
Metadata
Metadata
Assignees
Labels
No labels