• Home
Name Date Size #Lines LOC

..--

derive_ref/22-Mar-2025-471386

tutorial_builder/22-Mar-2025-1,149852

tutorial_derive/22-Mar-2025-1,100774

README.mdD22-Mar-2025830 1712

cargo-example-derive.mdD22-Mar-20251 KiB3928

cargo-example-derive.rsD22-Mar-2025466 2117

cargo-example.mdD22-Mar-2025961 3928

cargo-example.rsD22-Mar-2025659 1918

demo.mdD22-Mar-2025444 1813

demo.rsD22-Mar-2025445 2315

escaped-positional-derive.mdD22-Mar-20251.3 KiB6144

escaped-positional-derive.rsD22-Mar-2025692 2617

escaped-positional.mdD22-Mar-20251.2 KiB6144

escaped-positional.rsD22-Mar-20251 KiB3322

find.mdD22-Mar-2025832 4637

find.rsD22-Mar-20253.2 KiB10089

git-derive.mdD22-Mar-20252.8 KiB160113

git-derive.rsD22-Mar-20254.2 KiB165143

git.mdD22-Mar-20252.5 KiB158112

git.rsD22-Mar-20254.8 KiB138129

multicall-busybox.mdD22-Mar-2025891 4030

multicall-busybox.rsD22-Mar-20251.6 KiB4843

multicall-hostname.mdD22-Mar-2025268 117

multicall-hostname.rsD22-Mar-2025654 1815

pacman.mdD22-Mar-20251.8 KiB8056

pacman.rsD22-Mar-20254.1 KiB112101

repl.rsD22-Mar-20252.5 KiB9381

typed-derive.mdD22-Mar-20253.8 KiB13294

typed-derive.rsD22-Mar-20252.9 KiB10382

README.md

1# Examples
2
3We try to focus our documentation on the [four types of
4documentation](https://documentation.divio.com/).  Examples fit into this by
5providing:
6- [Cookbook / How-To Guides](https://docs.rs/clap/latest/clap/_cookbook/index.html)
7- Tutorials ([derive](https://docs.rs/clap/latest/clap/_derive/_tutorial/index.html), [builder](https://docs.rs/clap/latest/clap/_tutorial/index.html))
8
9This directory contains the source for the above.
10
11## Contributing
12
13New examples should fit within the above structure and support their narrative
14- Add the example to [Cargo.toml](../Cargo.toml) for any `required-features`
15- Document how the example works with a `.md` file which will be verified using [trycmd](https://docs.rs/trycmd)
16- Pull the `.rs` and `.md` file into the appropriate module doc comment to be accessible on docs.rs
17