mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
3cfea3223b
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. |
||
---|---|---|
.. | ||
bin | ||
build | ||
error | ||
output | ||
parse | ||
util | ||
derive.rs | ||
lib.rs | ||
macros.rs | ||
mkeymap.rs |