clap/src
Ed Page 3cfea3223b fix(help): Offer a html_template variable for display name
This is a step towards #992.  When help renders the application name, it
uses the `bin` template variable which is just the `bin` name with
spaces converted to ` `.  While having `app.exe sub` makes sense,
`app.exe-sub` does not.

To get around needing this for usage, we've created a `display_name`
field that is fairly similar but
- The root name is the `name` and not `bin_name`
- We always join with `-`

This means that the derived `bin_name` will only show up in usage.

For now, the default template has not been updated as that is a minor
compatibility change and should be in a minor release, at least.  I was
worried this would be a full breaking change.  The main case I was
worried about was cargo subcommands but our tests show they should just
work.
2022-05-03 14:34:47 -05:00
..
bin test(output): Ensure correct streams 2022-04-22 10:56:47 -05:00
build fix(help): Offer a html_template variable for display name 2022-05-03 14:34:47 -05:00
error fix(error): Render actual usage for unrecognized subcommands 2022-05-02 09:25:44 -05:00
output fix(help): Offer a html_template variable for display name 2022-05-03 14:34:47 -05:00
parse fix(error): Render actual usage for unrecognized subcommands 2022-05-02 09:25:44 -05:00
util docs: Update App references to Command 2022-02-14 15:33:49 -06:00
derive.rs chore: Release 2022-05-02 13:02:10 -05:00
lib.rs fix(clap): Allow disabling color with debug 2022-04-22 12:32:58 -05:00
macros.rs refactor(help): Make bool's meaning clearer 2022-04-21 16:01:47 -05:00
mkeymap.rs fix(lex): Make long args more convinient 2022-04-15 10:55:34 -05:00