Ed Page
7c86eeb176
test(man): Add snapshot tests
2022-03-07 14:12:59 -06:00
Ed Page
003b0052bb
test(fig): Switch to snapshot testing
2022-03-07 14:08:56 -06:00
Ed Page
02fe7659c0
test(complete): Switch to snapshot testing
...
- This will make it easier to update
- We now uniformly test each shell
2022-03-07 14:03:49 -06:00
Ed Page
aae158f3a2
chore: Upgrade trycmd
2022-03-07 13:27:24 -06:00
Ed Page
e702f42e5e
chore: Release
2022-03-07 10:40:48 -06:00
Ed Page
591a48ff64
docs: Update changelog
2022-03-07 10:40:30 -06:00
Ed Page
8170754287
Merge pull request #3541 from plaflamme/fix-argenum-defaults
...
fix: multiple default values combined with `ArgEnum` / `PossibleValues`
2022-03-07 10:39:08 -06:00
plaflamme
b6df23dc14
fix: Multiple defaults combined with ArgEnum
2022-03-06 23:10:16 -05:00
plaflamme
154c0d0c65
test: Add test to demonstrate regression
2022-03-06 23:09:55 -05:00
Pavan Kumar Sunkara
2bd3dd7d0c
Merge pull request #3537 from jwupf/fix_link_to_derive_example
...
Fix link to example
2022-03-06 13:06:48 +00:00
Jörg Wunderlich-Pfeiffer
92e1666868
docs: Fix link to example
2022-03-06 11:05:23 +01:00
Ed Page
0d022f18a9
Merge pull request #3536 from clap-rs/env-re
...
Fixes #3464
2022-03-05 13:16:24 -06:00
Pavan Kumar Sunkara
8a9403a1df
Fixes #3464
2022-03-05 14:25:12 +00:00
Ed Page
49559291f0
Merge pull request #3531 from epage/feature
...
fix: Reduce chance of missing `cargo` feature
2022-03-03 13:03:19 -06:00
Ed Page
c6d456f608
fix(builder): Tell users cargo feature is needed
...
This will help in cases like #3530
2022-03-03 12:43:10 -06:00
Ed Page
20edbf08f7
docs(tutorial): Remove unneeded feature
2022-03-03 12:39:24 -06:00
Ed Page
14ea156218
docs: Annotate more places with required features
2022-03-03 12:32:29 -06:00
Ed Page
d2863a228c
Merge pull request #3529 from epage/attrib
...
docs(derive): Shift structure around lang->builder
2022-03-02 18:18:34 -06:00
Lucas Kent
0fe8ca7d3c
docs(derive): Shift structure around lang->builder
...
Before, we had the focus on attributes and how they were impacted by
various features. Now we separate out language items and put both magic
and raw attributes under the type of attribute (command, arg, etc)
2022-03-02 16:14:51 -06:00
Ed Page
e937955efb
chore: Release
2022-03-02 09:49:11 -06:00
Ed Page
3ed151d1b3
docs: Update changelog
2022-03-02 09:49:04 -06:00
Ed Page
d63457a20f
Merge pull request #3522 from clap-rs/dependabot/cargo/textwrap-0.15.0
...
chore(deps): update textwrap requirement from 0.14.0 to 0.15.0
2022-03-02 09:47:36 -06:00
dependabot[bot]
e52ce536e0
chore(deps): update textwrap requirement from 0.14.0 to 0.15.0
...
Updates the requirements on [textwrap](https://github.com/mgeisler/textwrap ) to permit the latest version.
- [Release notes](https://github.com/mgeisler/textwrap/releases )
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mgeisler/textwrap/compare/0.14.0...0.15.0 )
---
updated-dependencies:
- dependency-name: textwrap
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 15:21:59 +00:00
Ed Page
1e286f3dc2
chore: Release
2022-03-02 09:20:00 -06:00
Ed Page
e0280ca20e
docs: Update changelog
2022-03-02 09:19:04 -06:00
Ed Page
47dae64529
Fix a typo in an example ( #3528 )
...
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
2022-03-02 09:17:00 -06:00
Roland Fredenhagen
33949ce4de
feat(help): Show PossibleValue help in --help
( #3503 )
...
`-h` (short help) still shows the same.
This gates it behind an `unstable-v4` feature flag to avoid disrupting users who set the help without knowing where all it shows up (particularly derive users where `ArgEnum` is automatically extracting the help).
Fixes #3312
2022-03-02 09:15:28 -06:00
Steve Klabnik
f89c8f4da2
Fix a typo in an example
2022-03-02 08:41:08 -06:00
Ed Page
63fa59a251
chore: Release
2022-02-28 10:03:45 -06:00
Ed Page
d87dd9005c
docs: Update changelog
2022-02-28 10:03:30 -06:00
Ed Page
fce7796c1d
Merge pull request #3521 from epage/assert
...
fix(assert): Validate delimited defaults
2022-02-28 09:55:19 -06:00
Ed Page
3f2a37088b
fix(assert): Validate delimited defaults
...
Fixes #3514
2022-02-28 09:21:44 -06:00
Ed Page
28162d49cd
Merge pull request #3507 from virtualritz/patch-1
...
Fixed broken Command Attributes link
2022-02-24 07:44:24 -06:00
Moritz Mœller
22efb36983
Fixed broken Command Attributes link
2022-02-24 13:39:53 +01:00
Ed Page
bfeb751d0d
chore: Ensure clap always uses latest clap_derive
2022-02-23 12:50:32 -06:00
Ed Page
20dc6673bc
chore: Release
2022-02-23 09:39:40 -06:00
Ed Page
2f9cae8cb4
docs: Update changelog
2022-02-23 09:38:44 -06:00
Ed Page
0e0e867902
Merge pull request #3505 from epage/subcommand
...
fix(derive): Allow other attributes with subcommand that has subcommands
2022-02-23 09:36:54 -06:00
Ed Page
cb937641fa
fix(derive): Allow other attributes with subcommand that has subcommands
...
This was overlooked when we added support for `#[clap(subcommand)]` to
variants.
Fixes #3504
2022-02-23 09:23:33 -06:00
Ed Page
15f43f871a
refactor(ci): Move ui tests to Makefile
2022-02-23 09:03:18 -06:00
Pavan Kumar Sunkara
bf36c75b97
Merge pull request #3501 from nh13/patch-1
...
Fix link to contributing from examples
2022-02-23 10:51:59 +00:00
Nils Homer
c13cd89ceb
Fix link to contributing
2022-02-22 20:36:54 -08:00
Ed Page
a7b7d43582
docs(derive): Call out 'Command' relationship
2022-02-22 18:09:47 -06:00
Ed Page
77d2de033c
Merge pull request #3499 from epage/doc
...
docs(examples): Help smooth out some rought edges
2022-02-22 18:06:49 -06:00
Ed Page
cb9cb251a9
style: Clean up
2022-02-22 17:47:46 -06:00
Ed Page
f7419ec3d2
docs(examples): Be explicit about example topics
2022-02-22 08:43:33 -06:00
Ed Page
c55989459f
docs(tutorial): Examples as next step
2022-02-22 08:37:13 -06:00
Ed Page
7e51f7c03d
docs(derive): Call out different subcommand arg syntaxes
2022-02-22 08:32:18 -06:00
Ed Page
517b8e4233
docs(derive): Clarify the break down
2022-02-22 08:31:02 -06:00
Ed Page
9946579fc9
docs(tutorial): Clarify to debug_assert in tests
2022-02-22 08:29:53 -06:00