clap/examples
Ed Page 06d43a02da fix(help): Subcommand help looks like --help
Like was said in #2435, this is what people would expect.

While we should note this in a compatibility section in the changelog, I
do not consider this a breaking change since we should be free to adjust
the help output as needed.  We are cautious when people might build up
their own content around it (like #3312) but apps should already handle
this with `--help` so this shouldn't be a major change.

We aren't offering a way for people to disable this, assuming people
won't need to.  Longer term, we are looking at support "Actions" (#3405)
and expect those to help customize the flags.  We'll need something
similar for the `help` subcommand.

Fixes #3440
2022-02-11 12:47:34 -06:00
..
derive_ref feat: Override DeriveDisplayOrder behavior with App::next_display_order 2022-02-07 19:19:11 -06:00
tutorial_builder fix(help): Subcommand help looks like --help 2022-02-11 12:47:34 -06:00
tutorial_derive fix(help): Subcommand help looks like --help 2022-02-11 12:47:34 -06:00
cargo-example-derive.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
cargo-example-derive.rs docs(examples): Add missing feature flag reqs 2022-02-11 07:07:03 -06:00
cargo-example.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
cargo-example.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
demo.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
demo.rs docs(examples): Steer people to know about about vs long_about 2022-01-10 18:47:24 -06:00
escaped-positional-derive.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
escaped-positional-derive.rs docs(examples): Steer people to know about about vs long_about 2022-01-10 18:47:24 -06:00
escaped-positional.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
escaped-positional.rs refactor(examples): Change naming style 2021-12-15 11:12:18 -06:00
git-derive.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
git-derive.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
git.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
git.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
keyvalue-derive.md test: Update 2022-02-07 13:28:48 -06:00
keyvalue-derive.rs refactor(examples): Change naming style 2021-12-15 11:12:18 -06:00
multicall-busybox.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
multicall-busybox.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
multicall-hostname.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
multicall-hostname.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
pacman.md docs: Fix messed up highlighting 2022-01-05 11:53:06 -06:00
pacman.rs docs: Re-work examples 2021-11-30 21:33:52 -06:00
README.md docs(examples): Add cargo subcommand example 2021-12-15 12:07:29 -06:00

Examples

Contributing

New examples:

  • Building: They must be added to Cargo.toml with the appropriate required-features.
  • Testing: Ensure there is a markdown file with trycmd syntax
  • Link the .md file from here

See also the general CONTRIBUTING.