cargo_example.rs |
# Example: cargo subcommand (Builder API)
```rust |
190 |
cargo_example_derive.rs |
# Example: cargo subcommand (Derive API)
```rust |
203 |
escaped_positional.rs |
# Example (Builder API)
```rust |
182 |
escaped_positional_derive.rs |
# Example (Derive API)
```rust |
195 |
find.rs |
# Example: find-like CLI (Builder API)
```rust |
169 |
git.rs |
# Example: git-like CLI (Builder API)
```rust |
166 |
git_derive.rs |
# Example: git-like CLI (Derive API)
```rust |
179 |
mod.rs |
# Documentation: Cookbook
Typed arguments: [derive][typed_derive]
- Topics:
- Custom `parse()`
Custom cargo command: [builder][cargo_example], [derive][cargo_example_derive]
- Topics:
- Subcommands
- Cargo plugins
- custom terminal [styles][crate::Command::styles] (colors)
find-like interface: [builder][find]
- Topics:
- Position-sensitive flags
git-like interface: [builder][git], [derive][git_derive]
- Topics:
- Subcommands
- External subcommands
- Optional subcommands
- Default subcommands
- [`last`][crate::Arg::last]
pacman-like interface: [builder][pacman]
- Topics:
- Flag subcommands
- Conflicting arguments
Escaped positionals with `--`: [builder][escaped_positional], [derive][escaped_positional_derive]
Multi-call
- busybox: [builder][multicall_busybox]
- Topics:
- Subcommands
- hostname: [builder][multicall_hostname]
- Topics:
- Subcommands
repl: [builder][repl], [derive][repl_derive]
- Topics:
- Read-Eval-Print Loops / Custom command lines |
1714 |
multicall_busybox.rs |
# Example: busybox-like CLI (Builder API)
```rust |
198 |
multicall_hostname.rs |
# Example: hostname-like CLI (Builder API)
```rust |
201 |
pacman.rs |
# Example: pacman-like CLI (Builder API)
```rust |
175 |
repl.rs |
# Example: Command REPL (Builder API)
```rust |
115 |
repl_derive.rs |
# Example: REPL (Derive API)
```rust |
105 |
typed_derive.rs |
# Example: Custom Types (Derive API)
```rust |
183 |