mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
befee6667b
This creates distinct tutorial examples from complex feature examples (more how-tos). Both sets are getting builder / derive versions (at least the critical ones). |
||
---|---|---|
.. | ||
tutorial_builder | ||
tutorial_derive | ||
demo.md | ||
demo.rs | ||
escaped_positional.md | ||
escaped_positional.rs | ||
escaped_positional_derive.md | ||
escaped_positional_derive.rs | ||
git.md | ||
git.rs | ||
git_derive.md | ||
git_derive.rs | ||
multicall_busybox.md | ||
multicall_busybox.rs | ||
multicall_hostname.md | ||
multicall_hostname.rs | ||
pacman.md | ||
pacman.rs | ||
README.md |
Examples
- Basic demo: 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.