Commit graph

6595 commits

Author SHA1 Message Date
Ed Page
4f17f998cb fix(derive): Better flatten type errors 2022-10-05 15:59:45 -05: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
Ed Page
dd8e242773 fix(parser): Allow defaults for Help/Version
These didn't make sense for the builder but are helpful for the derive.
The assert was assuming people wouldn't do this and to catch internal
problems.

Fixes #4326
2022-10-01 13:37:24 -05:00
Gilbert Gilb's
39cf3e7124
doc(fix typo): add missing "l" in "toml" 2022-10-01 20:36:01 +02:00
dependabot[bot]
ba7f2ed857
chore(deps): bump trybuild from 1.0.64 to 1.0.65
Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.64 to 1.0.65.
- [Release notes](https://github.com/dtolnay/trybuild/releases)
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.64...1.0.65)

---
updated-dependencies:
- dependency-name: trybuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-01 07:03:29 +00:00
Ed Page
8a124db113
Merge pull request #4315 from epage/color
docs(cookbook): Provide example of --color[=WHEN]
2022-09-30 20:45:24 -05:00
Ed Page
6615003c46 docs(cookbook): Provide example of --color[=WHEN] 2022-09-30 20:33:36 -05:00
Ed Page
03085e9dd1 docs(derive) Fix README links
Fixes #4314
2022-09-30 19:56:05 -05:00
Ed Page
a34e187da8
Merge pull request #4312 from epage/short
docs: Fix outdated short comment
2022-09-30 15:02:32 -05:00
Ed Page
46e238febb docs: Fix outdated short comment
Noticed as part of #4311
2022-09-30 14:49:38 -05:00
Ed Page
0bea4f252b chore: Release 2022-09-30 14:08:59 -05:00
Ed Page
b654130b14 docs: Update changelog 2022-09-30 14:08:49 -05:00
Ed Page
2ea94555f1
Merge pull request #4310 from epage/skip
fix(derive): Support 'group' attribute with Parser
2022-09-30 14:05:47 -05:00
Ed Page
5f145a23e9 fix(derive): Support 'group' attribute with Parser 2022-09-30 13:44:10 -05:00
Ed Page
106d8f5e90
Merge pull request #4309 from epage/docs
docs: Fix a few items
2022-09-30 13:41:35 -05:00
Ed Page
16e5599b71 docs: Note that author doesn't show up by default 2022-09-30 13:27:46 -05:00
Ed Page
49186a5930 docs: Note the move in ErrorKind
This was supposed to be captured by a deprecation but
- We missed the deprecation on that line
- I think I've run into issues with deprecations not applying to `use`
2022-09-30 13:24:46 -05:00
Ed Page
4eb3da20f7 docs(help): Include example with old template 2022-09-30 13:21:13 -05:00
Ed Page
db31881be5 docs: Remove references to global settings
These were copied over from the original `AppSettings` and never updated
despite never being relevant in this context.
2022-09-30 13:17:46 -05:00
Ed Page
973f30fb22 refactor(docs): Use intra-doc links to avoid breakages 2022-09-30 13:16:13 -05:00
Ed Page
e53447835c docs: Fix link to crate_authors macro 2022-09-30 13:15:58 -05:00
Ed Page
6328c14c0c
Merge pull request #4307 from epage/assert
feat(assert): Help people know about implicit ArgGroups
2022-09-30 13:09:13 -05:00
Ed Page
e9c7ee4f5f docs: Add missing short help entry to changelog 2022-09-30 13:08:10 -05:00
Ed Page
1065d6c36b feat(assert): Help people know about implicit ArgGroups 2022-09-30 12:56:43 -05:00
Ed Page
59562f0b97
Merge pull request #4305 from epage/id
feat(derive): Report the group id
2022-09-30 12:43:57 -05:00
Ed Page
c16fdbedc1 docs: Clarify term_width requires wrap_help 2022-09-30 12:30:14 -05:00
Ed Page
42122787d7 feat(derive): Report the group id
This will be needed when we support flattening for #3165
2022-09-30 12:24:21 -05:00
Ed Page
1877e31c21
Merge pull request #4303 from epage/group
feat(derive): Implicitly populate groups from some structs
2022-09-30 12:17:18 -05:00
Ed Page
8f8558a32d
Merge pull request #4302 from epage/group4
fix(error): Improve errors when groups are involved
2022-09-30 11:42:50 -05:00
Ed Page
50ad905b6a feat(derive): Implicitly populate groups from some structs
This implements the basics for #3165, just missing
- `flatten` support (waiting on improved group support)
- `group` attributes
2022-09-30 11:42:06 -05:00
Ed Page
5017f0d720 fxi(error): Don't report unrelated groups in requries errors 2022-09-30 11:18:47 -05:00