mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
db863de6c1
While we don't have a built-in mechanism, its relatively easy to support with the APIs we provide. Inspired by #3566
1.1 KiB
1.1 KiB
Examples
- Basic demo: derive
- Typed arguments: derive
- Topics:
- Custom
parse()
- Custom
- Topics:
- Custom cargo command: builder, derive
- Topics:
- Subcommands
- Cargo plugins
- Topics:
- git-like interface: builder, derive
- Topics:
- Subcommands
- External subcommands
- Default subcommands
- Topics:
- pacman-like interface: builder
- Topics:
- Flag subcommands
- Conflicting arguments
- Topics:
- Escaped positionals with
--
: builder, derive - Multi-call
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.