]> git.proxmox.com Git - rustc.git/blame - vendor/clap/examples/README.md
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / clap / examples / README.md
CommitLineData
04454e1e
FG
1# Examples
2
3- Basic demo: [derive](demo.md)
923072b8
FG
4- Typed arguments: [derive](typed-derive.md)
5 - Topics:
6 - Custom `parse()`
04454e1e 7- Custom cargo command: [builder](cargo-example.md), [derive](cargo-example-derive.md)
923072b8
FG
8 - Topics:
9 - Subcommands
10 - Cargo plugins
04454e1e 11- git-like interface: [builder](git.md), [derive](git-derive.md)
923072b8
FG
12 - Topics:
13 - Subcommands
14 - External subcommands
15 - Optional subcommands
16 - Default subcommands
04454e1e 17- pacman-like interface: [builder](pacman.md)
923072b8
FG
18 - Topics:
19 - Flag subcommands
20 - Conflicting arguments
04454e1e
FG
21- Escaped positionals with `--`: [builder](escaped-positional.md), [derive](escaped-positional-derive.md)
22- Multi-call
23 - busybox: [builder](multicall-busybox.md)
923072b8
FG
24 - Topics:
25 - Subcommands
04454e1e 26 - hostname: [builder](multicall-hostname.md)
923072b8
FG
27 - Topics:
28 - Subcommands
29- repl: [builder](repl.rs)
30 - Topics:
31 - Read-Eval-Print Loops / Custom command lines
04454e1e
FG
32
33## Contributing
34
35New examples:
923072b8 36- Building: They must be added to [Cargo.toml](../Cargo.toml) with the appropriate `required-features`.
04454e1e
FG
37- Testing: Ensure there is a markdown file with [trycmd](https://docs.rs/trycmd) syntax
38- Link the `.md` file from here
39
923072b8 40See also the general [CONTRIBUTING](../CONTRIBUTING.md).