]> git.proxmox.com Git - rustc.git/blame - vendor/clap-4.2.1/src/_cookbook/mod.rs
New upstream version 1.71.1+dfsg1
[rustc.git] / vendor / clap-4.2.1 / src / _cookbook / mod.rs
CommitLineData
49aad941
FG
1// Contributing
2//
3// New examples:
4// - Building: They must be added to `Cargo.toml` with the appropriate `required-features`.
5// - Testing: Ensure there is a markdown file with [trycmd](https://docs.rs/trycmd) syntax
6// - Link the `.md` file from here
7
8//! # Documentation: Cookbook
9//!
10//! Typed arguments: [derive][typed_derive]
11//! - Topics:
12//! - Custom `parse()`
13//!
14//! Custom cargo command: [builder][cargo_example], [derive][cargo_example_derive]
15//! - Topics:
16//! - Subcommands
17//! - Cargo plugins
18//!
19//! find-like interface: [builder][find]
20//! - Topics:
21//! - Position-sensitive flags
22//!
23//! git-like interface: [builder][git], [derive][git_derive]
24//! - Topics:
25//! - Subcommands
26//! - External subcommands
27//! - Optional subcommands
28//! - Default subcommands
29//! - [`last`][crate::Arg::last]
30//!
31//! pacman-like interface: [builder][pacman]
32//! - Topics:
33//! - Flag subcommands
34//! - Conflicting arguments
35//!
36//! Escaped positionals with `--`: [builder][escaped_positional], [derive][escaped_positional_derive]
37//!
38//! Multi-call
39//! - busybox: [builder][multicall_busybox]
40//! - Topics:
41//! - Subcommands
42//! - hostname: [builder][multicall_hostname]
43//! - Topics:
44//! - Subcommands
45//!
46//! repl: [builder][repl]
47//! - Topics:
48//! - Read-Eval-Print Loops / Custom command lines
49
50pub mod cargo_example;
51pub mod cargo_example_derive;
52pub mod escaped_positional;
53pub mod escaped_positional_derive;
54pub mod find;
55pub mod git;
56pub mod git_derive;
57pub mod multicall_busybox;
58pub mod multicall_hostname;
59pub mod pacman;
60pub mod repl;
61pub mod typed_derive;