Commit graph

6815 commits

Author SHA1 Message Date
Ed Page
d5c3c13ec2 docs: Update changelog 2022-11-07 10:00:22 -06:00
Ed Page
87edc19ef7
Merge pull request #4461 from epage/help
fix(derive): Allow 'long_help' to force populating from doc comment
2022-11-07 09:59:06 -06:00
Ed Page
c37ab6c205 fix(derive): Allow 'long_help' to force populating from doc comment
Fixes #4441
2022-11-07 09:41:52 -06:00
Ed Page
8751152316 test(derive): Verify long_help behavior 2022-11-07 09:36:53 -06:00
Ed Page
c1a9da9124 refactor(derive): Decouple extracting and formatting of doc comments 2022-11-07 09:17:04 -06:00
Ed Page
214f6b8966 refactor(derive): Clarify bool arg 2022-11-07 08:31:37 -06:00
Ed Page
bcbf0b4e04
Merge pull request #4460 from epage/help
refactor(derive): Clean up doc comment handling
2022-11-07 08:22:49 -06:00
Ed Page
73be1fef99 refactor(derive): Remove dead code 2022-11-07 08:08:06 -06:00
Ed Page
5ee9e0fe76 refactor(derive): Decouple doc comment parsing from methods 2022-11-07 08:06:10 -06:00
Ed Page
6ace0410c1 refactor(derive): Clarify leading-space removal 2022-11-07 07:49:44 -06:00
Ed Page
d1db3d2f0e refactor(derive): Clarify empty doc needs 2022-11-07 07:48:16 -06:00
Ed Page
c75b81eeb8 chore: Release 2022-11-07 07:39:49 -06:00
Ed Page
28324d8df7 docs: Update changelog 2022-11-07 07:39:36 -06:00
Ed Page
571f45080e
Merge pull request #4447 from tmccombs/guess-shell
Add support for determining current shell from environment
2022-11-07 07:38:51 -06:00
Ed Page
b4b94af0f8 chore: Release 2022-11-07 06:24:02 -06:00
Ed Page
4ea612c07c docs: Update changelog 2022-11-07 06:23:15 -06:00
Ed Page
816841f934
Merge pull request #4459 from epage/unit
fix(derive): Allow defaulted value parser for '()' fields
2022-11-07 06:22:18 -06:00
Ed Page
79225d3a2d fix(derive): Allow defaulted value parser for '()' fields
Inspired by #4458

This is a compatible change because it turns a compiler error into a
working case.
2022-11-07 06:07:51 -06:00
Thayne McCombs
86db119153 feat(complete): Support getting shell from env
Add functions for getting the Shell from a path and for getting the
current shell form environment variables.

Closes: #4446
2022-11-06 23:39:55 -07:00
Ed Page
520145ee67
Merge pull request #4449 from epage/update
chore: Update trycmd
2022-11-04 10:44:36 -05:00
Ed Page
a24fb589eb chore: Update trycmd 2022-11-04 10:27:57 -05:00
Ed Page
7a8cf91aaa chore: Release 2022-11-04 09:49:50 -05:00
Ed Page
5dfeb1e3f9 docs: Update changelog 2022-11-04 09:49:42 -05:00
Ed Page
8c31bcea5c
Merge pull request #4445 from tmccombs/colorchoice-valueenum
Implement ValueEnum for ColorChoice
2022-11-04 09:48:44 -05:00
Thayne McCombs
2ff3d43724 feat(derive): Implement ValueEnum for ColorChoice 2022-11-04 00:29:52 -06:00
Ed Page
033438eb4b
Merge pull request #4440 from clap-rs/dependabot/cargo/trybuild-1.0.71
chore(deps): bump trybuild from 1.0.65 to 1.0.71
2022-11-02 16:37:24 -05:00
dependabot[bot]
7f0d9e306e
chore(deps): bump trybuild from 1.0.65 to 1.0.71
Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.65 to 1.0.71.
- [Release notes](https://github.com/dtolnay/trybuild/releases)
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.65...1.0.71)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-01 07:08:50 +00:00
Ed Page
27bfcc56a9 chore: Release 2022-10-31 06:54:01 -05:00
Ed Page
c8423ff42d docs(man): Update changelog 2022-10-31 06:52:32 -05:00
Ed Page
5908192f3e
Merge pull request #4432 from drivasperez/fix-man-args
clap_mangen: Don't show default values for flags, show ellipsis for repeatable arguments
2022-10-31 06:51:35 -05:00
Daniel Rivas
7030e9e995 fix: Don't show default values for flags
Also show ellipsis for repeatable arguments.
2022-10-30 18:28:17 +00:00
Ed Page
e14bd0eb75 chore: Update release process 2022-10-24 11:51:14 -05:00
Ed Page
7e2a1b5d94 chore: Release 2022-10-20 16:58:59 -05:00
Ed Page
3a0f9fe4a2 docs: Update changelog 2022-10-20 16:58:07 -05:00
Ed Page
422298ceb3
Merge pull request #4412 from epage/skip
fix(derive): Allow skipping enum variants with a value
2022-10-20 16:57:04 -05:00
Ed Page
91daec67ca fix(derive): Allow skipping enum variants with a value
Fixes #4411
2022-10-20 16:44:51 -05:00
Ed Page
996636d56f chore: Release 2022-10-18 14:37:53 -05:00
Ed Page
3e23cd102f fix: Require release versions of clap 2022-10-18 14:36:44 -05:00
Ed Page
b9dfbbf7e4 chore: Release 2022-10-18 07:42:32 -05:00
Ed Page
a6c8f6a5bd docs: Update changelog 2022-10-18 07:41:45 -05:00
Ed Page
e11afa284b
Merge pull request #4401 from epage/last
fix(complete): Support last(true) with CommandWithArguments
2022-10-18 07:41:02 -05:00
Ed Page
1ead5ef421 fix(complete): Support last(true) with CommandWithArguments
Fixes #4400
2022-10-18 07:28:52 -05:00
Ed Page
e50a11a404
Merge pull request #4399 from j-browne/link-fix
docs: Fix a broken link in ValueEnum docs
2022-10-18 07:27:38 -05:00
Justin Browne
a1d4476f24 Fix a broken link in ValueEnum docs 2022-10-18 05:03:58 -04:00
Ed Page
cbb05d54f8 chore: Release 2022-10-17 19:43:15 -05:00
Ed Page
b77bd0cc6a docs: Update changelog 2022-10-17 19:41:50 -05:00
Ed Page
466b6f837e
Merge pull request #4397 from epage/exclusive
fix(parser): Don't make Args `exclusive` with their ArgGroup
2022-10-17 19:40:43 -05:00
Ed Page
45dcf0ed22 fix(parser): Don't make Args exclusive with their ArgGroup
This is most obvious with the derive API as it creates `ArgGroup`s all
over the place now.

Fixes #4396
2022-10-17 19:02:39 -05:00
Ed Page
a40c7b491e
Merge pull request #4390 from sergejp/master
docs: Provide a better example for positional arg append
2022-10-14 08:51:32 -05:00
Sergej Pershaj
3250bcec4c docs: Provide a better example for positional arg append under derive 2022-10-14 14:49:39 +01:00