Commit graph

4740 commits

Author SHA1 Message Date
Richard Maw
e3d355fa85 feat: Make Multicall just strip dir from argv0 2021-12-12 22:08:25 +00:00
Ed Page
87d4400f1a docs(readme): Expand generate's readme
Modeled it after clap's README.

The lib.rs is written in a way that cause the example to be merged in.
2021-12-11 19:01:50 -06:00
Ed Page
b5cc5f0c5b docs(readme): Fix name of clap_generate 2021-12-11 18:59:28 -06:00
Ed Page
e647b643cf docs(contrib): Generate-specific notes 2021-12-11 18:55:50 -06:00
Ed Page
378e8d733d
Merge pull request #3150 from japert/improve-subcommand-deprecation-message
Improve `SubCommand` deprecation message.
2021-12-11 17:42:03 -06:00
Janis Peukert
1f51e8cb2f docs: Clarify deprecation message for SubCommand
Only `SubCommand` is deprecated, not `Subcommand`.
This new deprecation message mentions this ambiguity.

Resolves #3147.
2021-12-11 14:47:08 -08:00
rhysd
b498876cd8 fix: Fix unused parameter warning 2021-12-12 00:44:14 +09:00
Ed Page
f7af296a8c docs(readme): Link out to clap-generate 2021-12-11 09:12:59 -06:00
Ed Page
8bb71415af docs(readme): Consistently use crates.io links 2021-12-11 09:12:26 -06:00
Ed Page
fe1e1a6a86
Merge pull request #3149 from vi/patch-1
docs: Fix numbers of list entries in FAQ.md
2021-12-11 09:06:06 -06:00
Pavan Kumar Sunkara
bbc9db198f
Merge pull request #3157 from isudzumi/patch-1
docs: Fix pacman-like interface example link
2021-12-11 14:23:33 +00:00
Hiroaki ITO
c2dc425784
docs: Fix the pacman-like interface example link 2021-12-11 22:22:09 +09:00
Pavan Kumar Sunkara
534bb27762
Merge pull request #3153 from rhysd/id-in-assertions
feat: Include argument ID in UTF-8 assertion messages
2021-12-11 13:08:56 +00:00
rhysd
8ce56d416e fix: Update tests for assertion messages 2021-12-11 20:33:23 +09:00
rhysd
bc12ef168a feat: Include argument ID in UTF-8 assertion messages
so that users can understand which argument was going wrong.
2021-12-11 15:35:51 +09:00
Vitaly Shukela
f9d926550a
docs: Fix numbers of list entries in FAQ.md 2021-12-11 02:34:49 +03:00
Ed Page
c3f8c8938f chore: Release 2021-12-10 15:25:23 -06:00
Ed Page
74349cfcaa
Merge pull request #3144 from epage/test
fix(derive): Allow aliased Option with ArgEnum
2021-12-10 11:06:53 -06:00
Ed Page
703238f155 test(derive): Check all derives
There will always be some kind of corner case not covered as code
evolves but this expands the test to all of the basics.
2021-12-10 10:52:30 -06:00
Ed Page
43d3ac37a6 fix(derive): Allow aliased Option with ArgEnum 2021-12-10 10:41:55 -06:00
Ed Page
71a564de88 test(derive): Don't parse the actual command line 2021-12-10 10:36:45 -06:00
Pavan Kumar Sunkara
0eda43d0f6
Merge pull request #3142 from spire-ffoston/fix-result-type-alias-derive-impl
Fix unqualified result types causing compilation failures with derive implementations
2021-12-10 16:26:16 +00:00
Ed Page
cfbea9b12f docs: Note argfile's existence
Fixes #1693
2021-12-10 10:03:39 -06:00
Frankie Foston
1285c0f885 fix: unqualified result types causing compilation failures with derive implementations 2021-12-10 14:13:26 +00:00
Ed Page
ada95d6f3d chore: Release 2021-12-09 19:39:08 -06:00
Ed Page
4ab51976a3 chore: Release 2021-12-09 19:38:37 -06:00
Ed Page
ca48e22827
Merge pull request #3140 from epage/panic
Improve error reporting for bad arg/group/subcommand names
2021-12-09 19:35:17 -06:00
Ed Page
a4d2920cfa docs(readme): Raise visibility of wild 2021-12-09 18:57:16 -06:00
Ed Page
756f825521 fix: Point to public method on ArgMatches panic
This will make it faster for someone to figure out what is going on
without dropping down to `RUST_BACKTRRACE=1` by giving them the arg
*and* telling them which function *they* called was involved.
2021-12-09 18:51:28 -06:00
Ed Page
264dc37e50 fix: Report if mixing subcommands and args
This is especially helpful for people transitioning off of `is_present`
being used for subcommands.

Fixes #3139
2021-12-09 18:49:51 -06:00
Ed Page
313b5e3c80
Merge pull request #3138 from epage/disp
refactor: Clarify explicit display order wins
2021-12-09 18:30:31 -06:00
Ed Page
d38452c953 refactor: Clarify explicit display order wins
Now that we use options, we can rely on that, instead of sentinels, for
detecting a default and overriding only a default.

Noticed this as part of looking at #1807.
2021-12-09 16:24:49 -06:00
Ed Page
ae2b315f6a docs: Fix changelog link
Fixes #3137
2021-12-09 14:23:28 -06:00
Ed Page
cf93d7c75a docs: Fix example output
How did #3112 get merged?
2021-12-09 10:26:01 -06:00
Ed Page
587e58d178
Merge pull request #3111 from epage/from
Deprecate Setting FromStr along with YAML
2021-12-09 09:48:09 -06:00
Pavan Kumar Sunkara
e0c2de9abf
Merge pull request #3112 from epage/override
docs(derive): Show how to override special types
2021-12-09 15:40:31 +00:00
Ed Page
8a30b01bc1 refactor(yaml): Freeze FromStr 2021-12-09 09:36:00 -06:00
Ed Page
7731ca2d21 docs(derive): Show how to override special types
Fixes #3107
2021-12-09 09:32:33 -06:00
Ed Page
f16bdcc821 fix!: Limit Setting FromStrs to YAML
These exist pretty much just for YAML (#3087).  If anyone else is
building on these, it has a limited shelf-life anyways because of #2717.

BREAKING CHANGE: `FromStr` for settings requires the `yaml` feature.
2021-12-09 09:03:54 -06:00
Ed Page
3dec7df14f chore: Release 2021-12-09 07:00:33 -06:00
Pavan Kumar Sunkara
5a3ace8de4
Merge pull request #3109 from epage/deprecate
docs: Update deprecation messages
2021-12-09 12:57:59 +00:00
Ed Page
9d7becca68 docs: Update deprecation messages
- Some still referenced the clapng issue number
- Some YAML ones were missed in the formatting clean up
- I never updated the usage ones with the formatting clean up
2021-12-09 06:47:37 -06:00
Ed Page
4c807a0632 docs(faq): Update structopt status 2021-12-09 06:39:34 -06:00
Pavan Kumar Sunkara
91b5b395f5
Merge pull request #3105 from colinwahl/pack-exclusive-setting
Use ArgSettings to store Arg::exclusive
2021-12-09 08:22:43 +00:00
Colin Wahl
0b2a04c572 fix: Fix typo 2021-12-08 22:50:18 -08:00
Colin Wahl
f396b28419 chore: Pack exclusive setting into ArgSettings 2021-12-08 22:48:17 -08:00
Ed Page
1f465b57e3
Merge pull request #3104 from epage/unstable
test: Actually allow unstable examples to be tested
2021-12-08 21:21:12 -06:00
Ed Page
3b5c5c7879
Merge pull request #3101 from epage/features
docs: Auto-tag feature flags
2021-12-08 21:14:15 -06:00
Ed Page
130a1dc0e2 test: Actually allow unstable examples to be tested 2021-12-08 21:06:51 -06:00
Ed Page
f83ead6a8b docs(change): Update link 2021-12-08 21:03:27 -06:00