Ivor Wanders
ee6dc53722
docs: Reorder dependency addition and example
2022-07-03 09:49:52 -04:00
Ed Page
4ecdd1afe8
Merge pull request #3890 from clap-rs/dependabot/github_actions/pre-commit/action-3.0.0
...
chore(deps): bump pre-commit/action from 2.0.3 to 3.0.0
2022-07-01 20:41:11 -05:00
Ed Page
f495827126
chore: Release
2022-07-01 19:48:03 -05:00
Ed Page
51ad0dd155
docs: Update changelog
2022-07-01 19:47:49 -05:00
Ed Page
2b417c8593
Merge pull request #3884 from grant0417/clap-complete-fig-use-actions
...
feat(clap_complete_fig): Switch to using `ArgAction`
2022-07-01 19:46:00 -05:00
grant0417
85b1b7711a
fix: Add back depercated is_multiple_occurrences_set
2022-07-01 11:48:56 -07:00
dependabot[bot]
5ba845ab6f
chore(deps): bump pre-commit/action from 2.0.3 to 3.0.0
...
Bumps [pre-commit/action](https://github.com/pre-commit/action ) from 2.0.3 to 3.0.0.
- [Release notes](https://github.com/pre-commit/action/releases )
- [Commits](https://github.com/pre-commit/action/compare/v2.0.3...v3.0.0 )
---
updated-dependencies:
- dependency-name: pre-commit/action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-01 03:05:59 +00:00
Ed Page
64918b516f
Merge pull request #3886 from epage/docs
...
doc: Explain why examples are missing
2022-06-30 11:32:57 -05:00
Ed Page
7009ae63c8
doc: Explain why examples are missing
...
Fixes #3865
2022-06-30 08:29:16 -05:00
Ed Page
6614ffa6c8
chore: Release
2022-06-30 08:25:54 -05:00
Ed Page
a67746ecbe
docs: Update changelog
2022-06-30 08:25:46 -05:00
Ed Page
5ca73f3299
Merge pull request #3882 from emersonford/mut_subcommands
...
feat: add `mut_subcommand` method to modify existing subcommands
2022-06-30 08:24:43 -05:00
Emerson Ford
619f209138
feat: Add mut_subcommand
method to Command
...
this allows us modify existing subcommands on an existing/already built
Command struct
2022-06-29 20:42:58 -07:00
grant0417
4cf9f392ae
fix: Run cargo fmt
2022-06-28 18:38:43 -07:00
grant0417
0025944d9e
feat(clap_complete_fig): Switch to using ArgAction
2022-06-28 18:30:39 -07:00
Ed Page
b4a1362486
chore: Release
2022-06-28 08:04:18 -05:00
Ed Page
3e80393e43
docs: Update changelog
2022-06-28 08:03:17 -05:00
Ed Page
f406d99b95
Merge pull request #3879 from epage/env
...
fix(parser): Ensure globals override env vars
2022-06-28 08:01:21 -05:00
Ed Page
72d206e4d9
fix(parser): Ensure globals override env vars
...
This fixes a bug introduced in 4a694f3592
when we were trying to move away from presence checks via occurrences.
I switched it to the common type of presence check but really what we
want is a highest-precedence check.
Fixes #3872
2022-06-27 22:40:40 -05:00
Ed Page
f082eb6d4a
test(parser): Verify global/default interaction
2022-06-27 22:32:13 -05:00
Ed Page
9962393c20
Merge pull request #3877 from epage/assert
...
test: Verify auto-traits for core types
2022-06-27 21:05:44 -05:00
Ed Page
3c4e684c8b
test: Verify auto-traits for core types
...
By checking these types, we'll get some other types for free, like
`Command` verifying `Arg`.
This was inspired by #3876
2022-06-27 20:50:29 -05:00
Ed Page
a05f4d34a3
Merge pull request #3870 from stepancheg/macro-refs
...
Put once_cell reexport into __macro_refs
2022-06-27 20:44:01 -05:00
Ed Page
5ba41d775c
docs(license): Update years/holders
...
Without copyright assignment, everyone owns their own copyright, so
tried to reflect that.
See #3875
2022-06-27 12:55:09 -05:00
Stiopa Koltsov
464ef3920b
refactor: Put once_cell reexport into __macro_refs
...
When upgrading our company projects from clap 3.1 to clap 3.2 I had
to fix several references to `clap::lazy_init`. People are not
supposed to do that, but that's hard to enforce.
Hope placing `once_cell` reexport into `__macro_refs` prevent at
least some of the such issues in the future.
2022-06-26 04:13:03 +01:00
Ed Page
08d12b6db4
Merge pull request #3866 from hw-lunemann/derive-ref-spelling-fix
...
Fix spelling of 'APIs' in the derive docs
2022-06-25 19:16:33 -05:00
hw-lunemann
7e785ad9d6
Fix spelling of APIs
2022-06-25 00:55:48 +02:00
Ed Page
b2779f2249
Merge pull request #3862 from epage/deprecate
...
fix(docs): Update deprecations to latest target
2022-06-22 15:18:04 -05:00
Ed Page
f9e51952b8
fix(docs): Update deprecations to latest target
...
Before, I was mixed on doing this as ideally people would upgrade
through the minor releases, going through the release notes. This also
saves us havin to audit deprecations to make sure they are all pointing
to the latest.
First, this isn't practical for users. Its annoying to pin your version (at least
its easier now that we pin `clap_derive` for users) and a lot of work to
go through them one step at a time.
On top of that, we've changed our deprecation policy to put the timing
of responding to deprecations into the user's hands with, with us
putting them behind the `deprecated` feature flag. This means someone
might respond to deprecations every once in a while or might not do it
until right before the 4.0 release. Our deprecation messages should be
updated to respond to that.
This supersedes #3616
2022-06-22 14:31:15 -05:00
Ed Page
3823df9bbe
chore: Release
2022-06-21 09:32:04 -05:00
Ed Page
8a659bc2b4
docs: Update changelog
2022-06-21 09:31:11 -05:00
Ed Page
ceb7ee4f54
Merge pull request #3860 from epage/panic
...
fix(parser): Don't panic on `--=`
2022-06-21 09:30:19 -05:00
Ed Page
01da890145
fix(parser): Don't panic on --=
...
This broke when we introduced clap_lex and then did a refactor on top.
We put in guards to say that escapes shouldn't happen but missed `--=`
which isn't quite an escape.
Not fully set on what error should be returned in this case (we are
returning roughly what we used to) but at least
we aren't panicing.
Fixes #3858
2022-06-21 08:53:04 -05:00
Ed Page
dabb5713d4
Merge pull request #3853 from dtolnay-contrib/valuevalidation
...
Fix typo in ErrorKind::ValueValidation message
2022-06-17 15:39:37 -05:00
David Tolnay
690530a191
Fix typo in ErrorKind::ValueValidation message
2022-06-17 13:07:09 -07:00
Ed Page
ae78f88d48
Merge pull request #3852 from epage/msrv
...
chore: Bump MSRV from 1.56.0 to 1.56.1
2022-06-17 09:23:06 -05:00
Ed Page
82d70d82c4
chore: Bump MSRV from 1.56.0 to 1.56.1
...
Being a patch release, I'm fine doing this outside of a minor release.
This avoids us having to deal with indexmap having a higher MSRV.
2022-06-17 09:01:45 -05:00
Ed Page
8c28bec396
Merge pull request #3851 from tshepang/trim-manifest
...
chore: trim Cargo manifest fields whose values are defaults
2022-06-17 08:59:41 -05:00
Tshepang Mbambo
806f634bfa
chore: trim Cargo manifest fields whose values are defaults
...
See...
- https://doc.rust-lang.org/cargo/reference/manifest.html?#the-documentation-field
- https://doc.rust-lang.org/cargo/reference/manifest.html?#the-readme-field
2022-06-17 15:49:04 +02:00
Ed Page
5fdc26ee9a
Merge pull request #3844 from epage/occurrences
...
fix(parser): Add value_source as a replacement for occurrences_of
2022-06-16 13:50:17 -05:00
Ed Page
f131d46b99
fix(parser): Add value_source as a replacement for occurrences_of
...
This was an oversight when listing out the options as identified when
looking at oxidecomputer/humility#161 .
2022-06-16 13:29:31 -05:00
Ed Page
48d23b4c02
Merge pull request #3841 from epage/value_hint
...
test(complete): Ensure we infer path completions from value_parser
2022-06-16 10:28:53 -05:00
Ed Page
ea3bd55993
test(complete): Ensure we infer path completions from value_parser
...
Looks like I forgot to add a test case for this.
I put this in `clap_complete` because I expect `ValueHint` to move here
as we move towards a plugin system.
Fixes #3840
2022-06-16 09:59:30 -05:00
Ed Page
a7698e9a1d
chore: Release
2022-06-15 11:50:16 -05:00
Ed Page
be2a2c050a
docs: Update changelog
2022-06-15 11:50:02 -05:00
Ed Page
d5bf866a5d
Merge pull request #3837 from epage/bool
...
docs: Provide a hybrid-flag example
2022-06-15 11:47:10 -05:00
Ed Page
40daa70b89
docs: Provide a hybrid-flag example
...
Between
- `ArgAction::SetTrue` storing actual values
- `ArgAction::Set` making it easier for derive users to override bool
behavior
- `Arg::default_missing_value` allowing hybrid-flags
- This commit documenting hybrid-flags even further
There shouldn't be anything left for #1649
Fixes #1649
2022-06-15 11:09:53 -05:00
Ed Page
c9988db97f
docs(builder): Clean up default_missing_value's docs
2022-06-15 10:59:34 -05:00
Ed Page
82fd204ab5
Merge pull request #3836 from epage/help
...
fix(help): Improve debug output for help
2022-06-15 10:43:06 -05:00
Ed Page
3c9f24ac29
Merge pull request #3834 from omjadas/fix/default-value-os-t
...
fix: default_value_os_t
2022-06-15 10:07:19 -05:00