Ed Page
ac43b7baee
docs: Update changelog
2022-01-24 10:54:04 -06:00
Ed Page
5877f884f1
chore: Release
2022-01-18 14:59:58 -06:00
Ed Page
8cfa3567ef
docs: Update changelog
2022-01-18 14:59:48 -06:00
Ed Page
4b60440d91
docs: Note case in #3309
2022-01-18 10:30:51 -06:00
Ed Page
bd1bf66279
chore: Release
2022-01-17 20:34:09 -06:00
Ed Page
4e51f9b0ef
docs: Update changelog
2022-01-17 20:33:52 -06:00
Ed Page
ccbbba8908
chore: Release
2022-01-17 09:37:45 -06:00
Ed Page
6817a9cab2
docs: Update changelog
2022-01-17 09:37:22 -06:00
Ed Page
3d8ce3f426
chore: Release
2022-01-12 11:12:42 -06:00
Ed Page
0439dc221f
docs: Update changelogs
2022-01-12 11:11:53 -06:00
Ed Page
811fd6a04a
chore: Release
2022-01-10 16:16:18 -06:00
Ed Page
29cecfaa5d
docs: Update changelog
2022-01-10 16:13:50 -06:00
Ed Page
ef823bbeaf
chore: Release
2022-01-05 16:28:24 -06:00
Ed Page
0238a579e1
docs: Update changelog
2022-01-05 16:27:11 -06:00
Ed Page
a61ad342cf
docs(changelog): Call out more breaking changes
2022-01-05 10:28:42 -06:00
Ed Page
4ea1965789
chore: Release
2022-01-04 13:07:10 -06:00
Ed Page
c92b91671f
docs: Update changelog
2022-01-04 13:07:01 -06:00
Ed Page
9daefba196
chore: Release
2022-01-04 11:42:50 -06:00
Ed Page
6522eb1194
docs: Update changelog
2022-01-04 11:42:35 -06:00
Ed Page
d9906eb150
chore: Release
2022-01-04 09:49:41 -06:00
Ed Page
8830afb6df
docs: Update changeog
2022-01-04 09:48:50 -06:00
Ed Page
d392b88bd5
chore: Release
2022-01-03 12:12:28 -06:00
Ed Page
1a19d48765
docs: Update changelog
2022-01-03 12:11:11 -06:00
Ed Page
c01ebbac17
chore: Release
2021-12-31 14:35:02 -06:00
Ed Page
88a335ff97
fix(complete): Give crates more specific names
...
`clap_generate` originally intended to be "generate anything". With
`fig`, we already broke one part out. With #3174 's man support, we are
also looking at keeping it separate:
- More freedom to iterate on the API
- Uniqueness (and potential weight) of its dependencies
- man generation is normally more for distribution while completions are
a mix of being distributed with the app or the app generating the
completions (which will be exacerbated if we move most completion
parsing logic to be in Rust)
So `clap_generate` is having a lot more limited of a role than the
original name conveys. I worry the generic name will be a hindrance to
people discovering and using it (yes, documentation can help but there
are limits).
I hesitated because we are on the verge of releasing 3.0. However, doing
it even later will be even more disruptive because more people will be
using it (crates.io lists ~70 people using `clap_generate`).
To ease things, we are still releasing `clap_generate` as a wrapper
around `clap_complete`.
2021-12-31 12:03:29 -06:00
Ed Page
e5fbdc9b95
Revert "Remove {n} support"
...
This reverts commit 333b993481
.
PR #1810 's motivation was effectively "this is redundant with `\n`".
That is a fine motivation. Unfortunately, we don't have a way to force
a hard break in `clap_derive`. #2389 should help with this eventually
but we shouldn't hold up 3.0 to get that ready. So in the mean time, we
are restoring `{n}`.
We have #3230 for tracking the re-removal of it.
2021-12-30 11:44:45 -06:00
Ed Page
3499b6b4b6
docs(changelog): Fix typo
2021-12-23 16:07:29 -06:00
Ed Page
5643dddf3e
docs(tutorial): Encourage App::debug_assert
2021-12-23 08:41:52 -06:00
Ed Page
3ae0132f8c
docs(changelog): Link out for newline change
2021-12-20 08:38:55 -06:00
Ed Page
95198c95f3
docs: Update changelog
2021-12-15 11:02:12 -06:00
Ed Page
7c10b5a9b4
fix(derive): Treat default_value_os
like default_value
...
The test went from panicing to not-panicing
Fixes #3031
2021-12-13 16:25:49 -06:00
Ed Page
f83ead6a8b
docs(change): Update link
2021-12-08 21:03:27 -06:00
Ed Page
ee2d70f8ef
docs(change): Fix formatting
2021-12-08 21:01:41 -06:00
Ed Page
b13d66e2d1
docs(change): Fix tag links
2021-12-08 11:49:17 -06:00
Ed Page
90de88e1a3
docs(change): Fix link
2021-12-08 11:48:31 -06:00
Ed Page
b2dc03ec9d
docs(change): More consistent formatting
2021-12-08 11:47:39 -06:00
Ed Page
cca6adeedc
docs(change): Fix links
2021-12-08 11:45:45 -06:00
Ed Page
5a76a135b2
docs(change): Add v2 changelog
...
This hasn't been cherry-picked in a while
2021-12-08 11:42:42 -06:00
Ed Page
3fe462c099
docs: Add special note
2021-12-08 11:21:47 -06:00
Ed Page
e5997c1001
docs: Clarify deprecations
2021-12-08 11:14:47 -06:00
Ed Page
4a5d52350e
docs: Update old repo location
2021-12-07 08:14:41 -06:00
Ed Page
7dfd1f2e6b
docs: Encourage CLI testing
2021-12-06 14:58:56 -06:00
Ed Page
f18f3559e2
docs: Fix example test code
2021-12-06 14:56:45 -06:00
Ed Page
b2836c07a7
fix: Gracefully handle empty authors
2021-12-06 11:30:26 -06:00
Ed Page
4830c75ada
docs: Update changelog
2021-12-04 12:07:37 -06:00
Ed Page
951d1fc5c8
doc: Call out release highlights
2021-12-03 20:44:50 -06:00
Ed Page
d2af931c3d
doc: Write up migration guide
2021-12-03 20:44:37 -06:00
Ed Page
0cd16c34fc
feat: App::debug_assert
test helper
...
This will especially be important for users migrating from clap2 so they
can catch problems earlier in the process.
2021-12-03 14:12:03 -06:00
Ed Page
888c27048d
docs: Update changelog
2021-12-02 20:26:21 -06:00
Ed Page
75d417851b
docs: Clean up 3.0 changelog
2021-12-02 16:07:43 -06:00
Ed Page
23b988e064
docs: Parent SubcommandPrecedenceOverArg under AppSettings
...
We have it marked as an `ArgSettings` when it is an `AppSettings`.
2021-11-15 10:27:30 -06:00
rhysd
012f318c97
feat(doc): Fix many typos in docs, comments and codes found by typos-cli
2021-10-19 10:38:22 +09:00
Pavan Kumar Sunkara
585e995811
Release 3.0.0-beta.5
2021-10-17 17:01:18 +01:00
Ed Page
6dd9d467ce
fix(help)!: Consoldiate color settings
...
A lot of users expected `color` feature flag and `ColorAuto` etc to
control all colors. Having this extra flag around is easy to miss and
adds to our overall settings bloat, making it harder to find settings
people want.
This completely removes it, rather than make it deprecated like
functions in #2617 , because there is extra work to mark things
deprecated as Settings and we should decide on our strategy first before
investing time in addressing that issue.
Fixes #2806
2021-10-11 09:01:13 -05:00
bors[bot]
e8ec11e57f
Merge #2837
...
2837: fix: Gate App::replace r=pksunkara a=epage
Co-authored-by: Ed Page <eopage@gmail.com>
2021-10-09 16:27:41 +00:00
Ed Page
dfbeb71077
fix: Gate App::replace
...
We are concerned about the level of polish of this feature and are
unsure enough about its future, we've decided to gate it to unblock the
v3 release.
2021-10-09 10:49:10 -05:00
Kevin K
7b45695878
breaking(DisableVersionForSubcommands): removed
...
This commit removes `AppSettings::DisableVersionForSubcommand` as it's
now a moot setting with clap's default functionality of not building a
version flag unless there actually exists version information.
`clap_up` must still be changed to remove this variant instead of the
current configuration to simply rename the variant.
2021-10-09 11:12:50 -04:00
Ed Page
2bbe9123ee
fix!: Generalize unicode feature
...
This flag was added in v3. This will allow us to put more related
functionality behind it.
BREAKING CHANGE: `unicode_help` was renamed to `unicode`.
2021-10-09 06:27:28 -05:00
Ed Page
aeaf01e3e7
fix: Provide path to avoid UTF-8 panics
...
Before, validating UTF-8 was all-or-nothing and would cause a `panic` if
someone used the right API with non-UTF-8 input.
Now, all arguments are validated for UTF-8, unless opted-out. This
ensures a non-panicing path forward at the cost of people using the
builder API that previously did `value_of_os` need to now set this flag.
Fixes #751
2021-08-18 14:15:18 -05:00
Pavan Kumar Sunkara
52be134949
Release 3.0.0-beta.4
...
clap@3.0.0-beta.4
clap_derive@3.0.0-beta.4
clap_generate@3.0.0-beta.4
Generated by cargo-workspaces
2021-08-14 23:40:49 +01:00
Pavan Kumar Sunkara
73b28fb104
Release 3.0.0-beta.3
...
clap@3.0.0-beta.3
clap_derive@3.0.0-beta.3
clap_generate@3.0.0-beta.3
Generated by cargo-workspaces
2021-08-14 23:01:13 +01:00
Pavan Kumar Sunkara
a9b86ecefc
Update changelog
2021-08-14 22:46:49 +01:00
Ed Page
241d183b9c
Bump MSRV to 1.54.0
...
- This makes it so `doc` compiles on stable
Fixes #2618
2021-07-30 10:19:21 +01:00
Pavan Kumar Sunkara
3f94d17c71
Removed Arg::multiple
2021-06-16 07:17:11 +01:00
Pavan Kumar Sunkara
6a395d3208
ArgMacthes::is_present should not deal with subcommands at all, fixes #2494
2021-05-26 00:40:38 +01:00
Reagan McFarland
b184dc001b
setting: SubcommandHelpShowsLongForm implemented
...
Refactoring and better test cases
Refactored SubcommandHelpShowsLongForm to
UseLongFormatForHelpSubcommand.
Tests and docuemntation examples use about and long_about instead of
(before/after)_help.
Removed commented out tests
Linting: Fix trailing new line
Updated change log, refactored tests and doc str
Reordered items in the Changelog
New test added and old tests removed that were redundant
Doc string for AppSettings::UseLongFormatForHelpSubcommand fixed
2021-04-11 14:31:40 -04:00
Pavan Kumar Sunkara
b69c192ab4
Update changelog and implement more stuff for the upgrader
2021-03-13 14:03:15 +05:30
Pavan Kumar Sunkara
6634444c3c
Remove Arg::settings to be consistent with App
2021-02-12 10:42:38 +00:00
Pavan Kumar Sunkara
8eb5081b53
Update changelog
2021-02-10 23:33:14 +00:00
Pavan Kumar Sunkara
3758bba5e2
Remove help_about in favor of mut_arg
2021-02-07 17:22:56 +00:00
Pavan Kumar Sunkara
423e2dde00
Remove version_about in favor of mut_arg
2021-02-07 16:14:07 +00:00
Pavan Kumar Sunkara
b89163afb6
Update MSRV to 1.46
2020-11-28 11:58:28 +00:00
Pavan Kumar Sunkara
93bad33e48
Updated changelog and more dep upgrade logic
2020-11-13 03:08:09 +01:00
Pavan Kumar Sunkara
e8a06e79cd
Rename setting VersionlessSubcommands => DisableVersionForSubcommands
2020-10-24 16:04:49 +02:00
Pavan Kumar Sunkara
d6e2246aab
Rename setting DisableVersion => DisableVersionFlag
2020-10-24 16:03:12 +02:00
Pavan Kumar Sunkara
45f0ee8b55
Rename setting DisableHelpFlags => DisableHelpFlag
2020-10-24 16:03:12 +02:00
Pavan Kumar Sunkara
9c672510f3
Update changelog
2020-10-24 16:03:12 +02:00
Pavan Kumar Sunkara
8131ead04b
More changelog and consistency
2020-10-09 17:05:51 +02:00
Pavan Kumar Sunkara
b931e25c79
Update MSRV to 1.42
2020-10-09 17:04:46 +02:00
Pavan Kumar Sunkara
d881a1185b
Release 3.0.0-beta.2
...
clap@3.0.0-beta.2
clap_derive@3.0.0-beta.2
clap_generate@3.0.0-beta.2
Generated by cargo-workspaces
2020-09-18 20:32:41 +02:00
Pavan Kumar Sunkara
9e381f92a9
Rename required_unless_eq_* to required_unless_present_*
2020-08-29 11:48:35 +02:00
Pavan Kumar Sunkara
cfd1826052
Update changelog and upgrader
2020-08-28 17:27:47 +02:00
Marti Raudsepp
594c535ba2
Fix various typos in docs & code
...
Most errors detected and fixed with Topy (https://github.com/intgr/topy ),
all verified by hand.
2020-07-19 03:10:28 +03:00
Pavan Kumar Sunkara
ce229660fc
Backport changelog from v2
2020-06-10 09:48:37 +02:00
Pavan Kumar Sunkara
8bd1f1a9d3
Started on automatic upgrader
2020-06-10 09:48:37 +02:00
Pavan Kumar Sunkara
3fa39a55d2
Update changelog to reflect the correct minimum version
2020-02-02 09:31:09 +01:00
Erick Tryzelaar
d4cd4896dd
Bump minimum supported version of Rust to 1.33
2019-06-19 11:21:11 -07:00
Kevin K
92eab59dfc
docs: Fix some typos and markdown issues.
2018-03-19 17:11:59 -04:00
Kevin K
df996822c8
chore: increase version
2018-01-16 15:01:53 -05:00
Kevin K
92caafaf51
chore: increase version
2018-01-09 11:08:47 -05:00
Kevin K
e962f2cece
chore: increase version
2017-12-02 15:34:02 -05:00
Kevin K
58a57d901b
chore: increase version
2017-11-28 08:57:04 -05:00
Kevin K
9ef3d82bd0
chore: increase version
2017-11-27 10:28:28 -05:00
Kevin K
67170a8bd7
chore: increase version
2017-10-26 10:09:48 -04:00
Kevin K
bbd0589c19
Fix typo in minimum required Rust version
2017-10-24 21:51:21 -04:00
Kevin K
e3eaf56b36
chore: increase version
2017-10-24 15:31:33 -07:00
Kevin K
f093b4c1f8
chore: increase version
2017-09-14 10:39:24 -07:00
Kevin K
cbd813c1a0
chore: increase version
2017-09-13 20:55:00 -07:00
Kevin K
517276c6f3
chore: increase version
2017-07-29 15:29:39 -04:00
Kevin K
76869a0d68
chore: fix increase version
2017-07-21 09:59:01 -04:00