renovate[bot]
534be345d8
chore(deps): update compatible (dev)
2023-06-01 00:38:25 +00:00
Ed Page
9c3dc187cb
chore: Release
2023-05-19 11:55:42 -05:00
Ed Page
5047bb40bd
chore: Release
2023-05-19 11:48:29 -05:00
Ed Page
e1db168d69
fix(parser): Ensure terminated positionals are assigned correctly
2023-05-19 10:41:44 -05:00
Ed Page
1ee2e95e96
fix(builder): Allow value terminated multiple positional values
2023-05-19 10:39:05 -05:00
Ed Page
c3fe7ff0a9
fix(help): Don't use next-line-help on long-help for subcommands
...
Subcommands don't switch their behavior on `--help`, so let's not switch
to next-line-help based on `--help`.
Fixes #4897
2023-05-12 10:41:05 +02:00
Ed Page
21d911db10
style: Make clippy happy
2023-05-19 09:10:20 -05:00
Ed Page
8edf8c7676
Merge pull request #4922 from epage/docs
...
docs(builder): Remove stale docs references (set is default)
2023-05-19 09:02:18 -05:00
Ed Page
ac5d893091
docs(builder): Remove stale docs references (set is default)
2023-05-18 13:11:14 -05:00
Wim Looman
c41f4beaaa
fix(docs): Add note about Command::disable_help_subcommand applying to children
2023-05-18 14:11:22 +02:00
Ed Page
1d42caa0b6
Merge pull request #4912 from epage/assert
...
fix(assert): Clarify last assertion
2023-05-17 17:10:08 -05:00
Ed Page
67cc5ea3a2
fix(assert): Clarify last assertion
...
An incremental improvement for #4911 .
2023-05-17 16:33:36 -05:00
Daniel Hofstetter
3458adc6ae
fix: Typo in value_parser.rs
2023-05-15 15:35:25 +02:00
Yuri Astrakhan
d0302c5556
chore: Inline simple non-mixed format args
2023-05-04 15:58:04 -04:00
Ed Page
ba9cad6ca2
Merge pull request #4885 from epage/possible
...
refactor(help): Clean up long possible value handling
2023-05-03 21:17:45 -05:00
Ed Page
5fb1b25799
Merge pull request #4883 from nyurik/happy-clippy
...
chore: Make Clippy happy
2023-05-03 21:13:47 -05:00
Yuri Astrakhan
ebbdce4820
chore: Make Clippy happy
2023-05-03 21:56:07 -04:00
Yuri Astrakhan
797c23c415
chore: Inline format args using clippy fix
...
This command cleaned up all the format args,
making code significantly shorter and more readable.
```
cargo clippy --workspace --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2023-05-03 21:49:11 -04:00
Ed Page
1351c56289
fix(help): Consistently calculate PV name length
2023-05-03 20:15:31 -05:00
Ed Page
3963d73e18
perf(help): Remove next-help possible values
...
Next-line help for possible values does not feel like its pulling its
weight. If anything we should do next-line help for the entire
argument.
This dropped about 0.5 KiB but more importantly is prep for other
changes.
2023-05-03 20:09:36 -05:00
Ed Page
ec52b74d68
refactor(help): Better call out long-pv policy
2023-05-03 19:48:48 -05:00
Ed Page
9227ab1c7c
refactor(help): Be consistent in join style
2023-05-03 19:25:44 -05:00
Yuri Astrakhan
d810235d07
chore: Minor code dedup for writing possible vals
...
* writing possible values and subcommands used nearly identical code
* writing elements used duplicate code once for items and once for last item
2023-05-03 18:40:44 -04:00
Ed Page
baaf5c64c1
chore: Release
2023-05-02 14:07:29 -05:00
Ed Page
937f1ed9c9
fix(parser): Update iterator sizes as we go
...
Maybe it was just me, but I didn't realize that the length had to be
updated as we went but it can cause panics with a bad message.
Fixes #4870
2023-05-02 13:53:42 -05:00
Ed Page
a7214540f6
chore: Release
2023-05-02 13:24:34 -05:00
Dillon Shaffer
37507741c4
impl Eq<std::any::TypeId> for clap_builder::util::AnyValueId
2023-05-01 08:40:00 -06:00
Ed Page
fa57ed3123
chore: Release
2023-04-27 04:29:47 -05:00
Ed Page
9eaf8996a4
Merge pull request #4867 from epage/panic
...
fix(builder): Assert earlier on bad requires/conflicts
2023-04-27 18:57:19 -05:00
Ed Page
185729a7dc
fix(builder): Assert earlier on bad requires/conflicts
...
Fixes #4865
2023-04-27 04:16:14 -05:00
Ed Page
e02644b9c2
fix(usage): Provide more context in panic
2023-04-27 04:12:22 -05:00
mattmadeofpasta
296fec9186
test(help): Remove redundant test
2023-04-27 09:04:35 +00:00
Clement Tsang
89bf732353
docs: Update mut_arg docs on help + version flags
2023-04-20 22:18:27 -04:00
Ed Page
950a495753
fix(help): Preserve block indent when wrapping
2023-04-19 11:55:53 -05:00
Ed Page
4f0666d437
refactor(help): Clarify word splitter
2023-04-19 11:37:03 -05:00
Ed Page
60c8c3fc31
chore: Release
2023-04-19 11:11:47 -05:00
Ed Page
1ca073f212
docs(help): Fill in styles docs
2023-04-19 11:00:00 -05:00
Ed Page
6d5aaae5a9
feat(help): Allow access to current Styles
2023-04-19 10:57:00 -05:00
Ed Page
b99c50f7e9
chore: Release
2023-04-18 15:52:35 -05:00
Ed Page
cbea23e3fc
style: Make clippy happy
2023-04-18 15:36:02 -05:00
Ed Page
5ca3b2fc5f
refactor(help): Shrink binary size
2023-04-18 15:28:20 -05:00
Ed Page
ec7040e8ba
style: Make clippy happy
2023-04-18 15:22:42 -05:00
Ed Page
57974bed7b
refactor(help): Future proof styling
...
We can add a new style and default it to what it was split out of
without a breaking change.
2023-04-18 15:22:42 -05:00
Ed Page
e10e2ad249
refactor(help): Split out separate usage style
...
Because this doesn't have a full section after it, people might want to
style it differently than other headers.
2023-04-18 15:22:42 -05:00
Ed Page
8fd0a93bdc
refactor(help): Clarify style meaning
2023-04-18 15:22:42 -05:00
Ed Page
7cf08e63cd
refactor(help): Remove unused hint
2023-04-18 15:22:42 -05:00
Ed Page
015f88b21a
feat(help): Allow customizing terminal styling
...
For now, this is behind the `unstable-styles` feature as we verify this
is what we want for #3224
2023-04-18 15:22:42 -05:00
Ed Page
3cb90b0b22
refactor(help): Use a stylesheet
2023-04-18 15:22:42 -05:00
Ed Page
72515d14b1
refactor(help): Style in the caller
...
Random fixes along the way
- In one case the space after `tip:` was "colored" (won't matter until
themeing is available)
- One error case didn't color invalid values
- Changed the args associated with invalid values to be `literal` rather
than `warning`
- Changed the required value count to be `good`
- Changed the arg for invalid value counts to be `literal` (the actual
count is `warning`)
2023-04-18 15:22:42 -05:00
Ed Page
9416f3a347
refactor(help): Use anstyle in the caller
2023-04-18 15:22:42 -05:00