mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
ee3eab1614
Adds a more in depth validator to validate that the port is in range in the derive and builder tutorial (section 4.2). This supersedes #3416 |
||
---|---|---|
.. | ||
derive_ref | ||
tutorial_builder | ||
tutorial_derive | ||
cargo-example-derive.md | ||
cargo-example-derive.rs | ||
cargo-example.md | ||
cargo-example.rs | ||
demo.md | ||
demo.rs | ||
escaped-positional-derive.md | ||
escaped-positional-derive.rs | ||
escaped-positional.md | ||
escaped-positional.rs | ||
git-derive.md | ||
git-derive.rs | ||
git.md | ||
git.rs | ||
keyvalue-derive.md | ||
keyvalue-derive.rs | ||
multicall-busybox.md | ||
multicall-busybox.rs | ||
multicall-hostname.md | ||
multicall-hostname.rs | ||
pacman.md | ||
pacman.rs | ||
README.md |
Examples
- Basic demo: derive
- Key-value pair arguments: derive
- Custom cargo command: builder, derive
- git-like interface: builder, derive
- pacman-like interface: builder
- 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.