forked from clap-rs/clap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a template to produce the default help message.
This makes some changes to the template system: - Template tags for optional items (like {author}) now expand to nothing when the value is unset instead of a default string (like "unknown author"). - Many template tags now emit line-wrapped output to match write_default_help. - Items with long variants now expand to the appropriate thing for -h vs --help. - The now-obsolete {long-about} tag has been removed. - A few new tags have been added. These are externally-visible changes, but if this makes it into 3.0 that's probably reasonable? Note that line-wrapping can have some odd edge cases since it does not account for preceding/trailing characters on the same line as the tag. This is already the case in master, but will affect some additional tags with this changeset. See clap-rs#2065 for details. Closes clap-rs#2002.
- Loading branch information
Showing
3 changed files
with
107 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters