Ed Page
d9a641bcc8
docs: Consistently use console fence type
2023-03-24 21:33:49 -05:00
mochi33i
7c6cf81476
docs(clap_complete): The file name of the command in the clap_complete example documentation was not supported, so it has been updated
2023-03-27 23:24:50 +09:00
Martin
704d0e7a4f
chore: Make format!() calls more readable
2023-01-29 19:14:47 +00:00
Martin von Zweigbergk
5020d739d5
refactor(complete): Add an alias for the subcommand
...
I want to add support for completion of arguments for aliased
subcommands so it's nice to have an example to test on.
2022-09-29 08:39:49 -07:00
Martin von Zweigbergk
6bc8d2632c
refactor(complete): Add a subcommand to examples
...
It's useful when testing to have a subcommand in the examples.
2022-09-29 08:39:17 -07:00
Martin von Zweigbergk
59270b1c81
fix(complete): Make example commands match binary
...
The example binaries were renamed in 89c2b3bb0d
, but the commands in
them were not, making the generated completion scripts not work
(because we use the command name as binary name in the examples).
2022-09-29 08:34:19 -07:00
Ed Page
8aafddff01
docs(complete): Ensure examples work
...
Fixes #4272
2022-09-28 14:34:56 -05:00
Ed Page
bffce7f57a
fix: Deprecate Command::trailing_var_arg
...
Now that we have it on `Arg`, we don't need it on `Command`
2022-09-06 19:41:17 -05:00
Ed Page
85f541d789
fix: Switch to owned types
...
Impact:
- Binary size: 556.6 KiB to 578.4 KiB
- build time: 6.4950 us (7% slower)
- parse time: 7.7256 us
- parse sc time: 8.1580 us (5% faster)
Fixes #1041
Fixes #2150
2022-08-22 14:55:55 -05:00
Ed Page
ba15b5f430
fix!: Rename Arg::number_of_values to Arg::num_args
2022-08-03 14:45:47 -05:00
Ed Page
470531b515
fix!: Replace multiple_values
with number_of_values
...
This reduces ambiguity in how the different "multiple" parts of the API
interact and lowrs the amount of API surface area users have to dig
through to use clap.
For now, this is only a matter of cleaning up the public API. Cleaning
up the implementation is the next step.
2022-08-01 15:50:23 -05:00
Ed Page
5f20fe1930
docs: Shift focus from takes_value to actions
2022-07-26 14:50:51 -05:00
Ed Page
a712adefcd
fix(parser): Deprecate value_of
and friends
2022-05-25 12:57:11 -05:00
Ed Page
256643f8d3
fix: Deprecate possible_values
2022-05-25 12:57:11 -05:00
Ed Page
89c2b3bb0d
docs(complete): Clarify examples
2022-04-27 08:55:12 -05:00