Ed Page
233a6be7dc
Merge pull request #4365 from epage/error
...
feat(error): Allow reproducing clap's errors
2022-10-10 10:53:03 -05:00
Ed Page
502bb93e5b
feat(error): Allow reproducing clap's errors
...
Fixes #4362
2022-10-10 10:25:36 -05:00
Ed Page
5b763e957c
docs: Fix value_parser documented From types
2022-10-10 09:00:24 -05:00
Ed Page
a482b8a87b
Merge pull request #4355 from LingMan/patch-1
...
docs: Fix formatting in docs of value_parser! macro
2022-10-08 20:33:24 -05:00
Ed Page
fd41141071
docs: Clarify args_override_self
...
Fixes #4357
2022-10-08 20:18:27 -05:00
Ed Page
59bf166183
docs(tutorial): Fix flag actions
...
Fixes #4359
2022-10-08 20:14:03 -05:00
Ed Page
ec3fdc4a42
chore: Release
2022-10-08 19:58:26 -05:00
Ed Page
ec57becef6
docs: Update changelog
2022-10-08 19:58:13 -05:00
Ed Page
db7439ff1f
Merge pull request #4361 from hargut/fix/dont-count-control-characters-in-line-wrap
...
fix(clap): line wrap on strings that contain ascii control characters
2022-10-08 19:57:12 -05:00
Harald Gutmann
505f760df9
fix(clap): Early line wrap ascii control chars
...
counting ascii control sequences lead to unpredictable and early
line breaks on colorized inputs (e.g. syntax highlighted strings)
2022-10-08 19:55:52 +02:00
Harald Gutmann
95c638842a
fix(clap): Early line wrap ascii control chars
...
counting ascii control sequences lead to unpredictable and early
line breaks on colorized inputs (e.g. syntax highlighted strings)
2022-10-08 19:23:38 +02:00
LingMan
a867ddb6cd
docs: Fix formatting in docs of value_parser! macro
2022-10-08 01:08:38 +02:00
Ed Page
93648df153
Merge pull request #4352 from epage/typed
...
docs(cookbook): PossibleValues with custom types
2022-10-05 20:35:52 -05:00
Ed Page
e467cc70ae
docs(cookbook): PossibleValues with custom types
...
This used to be more magical in clap 3 and people are having a hard time
discovering how to get this in clap 4, so let's add examples:
- discrete numbers
- foreign enums
2022-10-05 19:12:05 -05:00
Ed Page
af1234a0c2
chore: Release
2022-10-05 16:51:33 -05:00
Ed Page
f921281f42
docs: Update changelog
2022-10-05 16:50:59 -05:00
Ed Page
f86cd0f2ec
Merge pull request #4350 from epage/option
...
feat(derive): Support `Option` when flattening
2022-10-05 16:48:27 -05:00
Ed Page
78676f5043
fix(derive): Make mismatched behavior more obvious
...
If the inner type never implemented `group_id()`, then it won't work and
people will be confused. This at least gives people an idea of whats
going wrong.
This is most likely to be a problem until #3165 is fully implemented but
hand-implementations can still run into this. Probably should have made
the groups another trait to catch this in type system but too late.
2022-10-05 16:25:14 -05:00
Ed Page
06d2049931
feat(derive): Support 'Option' when flattening
2022-10-05 16:21:00 -05:00
Ed Page
33db640dd5
refactor(derive): Make flatten's update prepped for Option
2022-10-05 16:12:12 -05:00
Ed Page
f121a8bdf6
fix(derive): Better subcommand type errors for Vec
2022-10-05 16:03:48 -05:00
Ed Page
4f17f998cb
fix(derive): Better flatten type errors
2022-10-05 15:59:45 -05:00
Dominik Nakamura
232d91b96e
docs: Describe the skip attribute for ValueEnums ( #4328 )
...
Documenting the `skip` attribute for the `ValueEnum` derive macro promptly, as it's not mentioned anywhere else.
Fixes #4327
2022-10-05 08:22:18 -05:00
Ed Page
9c217941c2
Merge pull request #4348 from mattmadeofpasta/clarify_no_long_help_text_for_possiblevalue
...
Clarify that the "body" part of the doc comment on a `ValueEnum` is ignored
2022-10-04 15:42:30 -05:00
mattmadeofpasta
e644a5ef66
docs(builder): Add help text
2022-10-04 16:26:57 -04:00
mattmadeofpasta
b03b60edd1
test(derive): Clarify doc comment
2022-10-04 16:25:07 -04:00
mattmadeofpasta
476a8af4e2
test(derive): Rename text case
2022-10-04 16:24:47 -04:00
mattmadeofpasta
b1c05bcecb
docs(derive): Add help text
2022-10-04 16:24:35 -04:00
Ed Page
39fe46e650
Merge pull request #4343 from nihaals/changelog-typo
...
Add missing backtick in changelog
2022-10-03 18:45:50 -05:00
Nihaal Sangha
aa5269d8d0
docs: Add missing backtick in changelog
2022-10-03 23:08:08 +00:00
Ed Page
1d533bb31f
chore: Release
2022-10-03 16:20:14 -05:00
Ed Page
46c96df187
docs: Update changelog
2022-10-03 16:19:58 -05:00
Ed Page
a9cc73ce4f
Merge pull request #4340 from epage/doc-comment
...
fix(derive): Apply doc comments for `#[command(subcommand)]`
2022-10-03 16:19:03 -05:00
Ed Page
7ceb08ac70
fix(derive): Apply doc comments for #[command(subcommand)]
...
This was broken in 8a5a9ba931
. I had
missed this case for parsing doc comments.
2022-10-03 16:04:38 -05:00
Ed Page
39b1ef076e
test(derive): Show derive bug
2022-10-03 15:40:59 -05:00
Tony Gorez
7f98947c04
feat: expose is_multiple
& get_args
API for ArgGroup
( #4336 )
...
Fixes #4228
2022-10-03 15:21:53 -05:00
Ed Page
969d22e4e7
Merge pull request #4322 from clap-rs/dependabot/cargo/trycmd-0.13.7
...
chore(deps): bump trycmd from 0.13.6 to 0.13.7
2022-10-03 09:36:52 -05:00
Ed Page
ee16d782b6
Merge pull request #4337 from epage/weak
...
fix: Hide clap_derive
2022-10-03 09:19:16 -05:00
Ed Page
8395360417
fix: Hide clap_derive
...
This was a bug that this wasn't done before and improves the `cargo add`
behavior.
2022-10-03 09:00:01 -05:00
Ed Page
68da825e62
Merge pull request #4332 from epage/crit
...
chore: Upgrade criterion
2022-10-03 08:17:44 -05:00
Ed Page
86c90df15e
chore: Upgrade criterion
2022-10-01 21:15:42 -05:00
dependabot[bot]
d53a8fc3c9
chore(deps): bump trycmd from 0.13.6 to 0.13.7
...
Bumps [trycmd](https://github.com/assert-rs/trycmd ) from 0.13.6 to 0.13.7.
- [Release notes](https://github.com/assert-rs/trycmd/releases )
- [Changelog](https://github.com/assert-rs/trycmd/blob/main/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/trycmd/compare/v0.13.6...v0.13.7 )
---
updated-dependencies:
- dependency-name: trycmd
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-02 02:13:06 +00:00
Ed Page
f1fe5705be
Merge pull request #4318 from clap-rs/dependabot/cargo/trybuild-1.0.65
...
chore(deps): bump trybuild from 1.0.64 to 1.0.65
2022-10-01 21:10:34 -05:00
Ed Page
54f835b708
Merge pull request #4323 from clap-rs/dependabot/cargo/snapbox-0.4.0
...
chore(deps): bump snapbox from 0.3.3 to 0.4.0
2022-10-01 21:06:06 -05:00
dependabot[bot]
f0d971562a
chore(deps): bump snapbox from 0.3.3 to 0.4.0
...
Bumps [snapbox](https://github.com/assert-rs/trycmd ) from 0.3.3 to 0.4.0.
- [Release notes](https://github.com/assert-rs/trycmd/releases )
- [Changelog](https://github.com/assert-rs/trycmd/blob/main/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/trycmd/compare/snapbox-v0.3.3...snapbox-v0.4.0 )
---
updated-dependencies:
- dependency-name: snapbox
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-01 18:58:27 +00:00
Ed Page
261fb792a4
chore: Release
2022-10-01 13:54:19 -05:00
Ed Page
05bf0504f0
chore: Remove outdated replacement
2022-10-01 13:54:08 -05:00
Ed Page
56f4ef7b80
docs: Update changelog
2022-10-01 13:52:40 -05:00
Ed Page
cc0da321dd
Merge pull request #4330 from epage/assert
...
fix(parser): Allow defaults for Help/Version
2022-10-01 13:51:44 -05:00
Ed Page
5cd74610ce
Merge pull request #4329 from gilbsgilbs/patch-1
...
doc(fix typo): add missing "l" in "toml"
2022-10-01 13:40:13 -05:00