clap/clap_generate
Ed Page 66341b3c11 fix: Always respect positional occurrences
When supporting multiple occurrences for positional arguments in #2804,
I added some tests to cover this but apparently simpler cases fail
despite those more complicated cases being tested.

This adds more multiple-occurrences tests for positional arguments,
fixes them, and in general equates multiple values with occurrences for
positional arguments as part of #2692.  There are a couple more points
for consideration for #2692 for us to decide on once this unblocks them
(usage special case in #2977 and how subcommand help should be handled).

I fully admit I have not fully quantified the impact of all of these
changes and am heavily relying on the quality of our tests to carry this
forward.
2021-11-01 14:14:04 -05:00
..
examples docs(generate): Move derive example to generate 2021-10-26 14:26:50 -05:00
src fix: Always respect positional occurrences 2021-11-01 14:14:04 -05:00
tests feat(doc): Fix many typos in docs, comments and codes found by typos-cli 2021-10-19 10:38:22 +09:00
Cargo.toml docs(generate): Move derive example to generate 2021-10-26 14:26:50 -05:00
LICENSE-APACHE docs: Ensure all crates have license files 2021-10-04 14:45:31 -05:00
LICENSE-MIT docs: Ensure all crates have license files 2021-10-04 14:45:31 -05:00
README.md chore: Minor doc and style changes 2021-10-12 02:08:11 +01:00

clap_generate

Crates.io Crates.io License License

Generates completions (and other things) for clap based CLIs