Commit graph

7618 commits

Author SHA1 Message Date
Ed Page
47c3b6f580
Merge pull request #4884 from nyurik/impl-order
chore: Order trait impl same as trait
2023-05-03 21:14:22 -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
Ed Page
7c8648eb0e
Merge pull request #4882 from nyurik/inline_fmt
chore: Inline format args using clippy fix
2023-05-03 21:04:43 -05:00
Yuri Astrakhan
1dc6304fcf chore: Order trait impl same as trait 2023-05-03 22:01:16 -04: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
3e6a77aefc
Merge pull request #4880 from epage/consistent
refactor(help): Be consistent in join style
2023-05-03 20:16:34 -05:00
Ed Page
1351c56289 fix(help): Consistently calculate PV name length 2023-05-03 20:15:31 -05:00
Ed Page
fabbe78140
Merge pull request #4879 from nyurik/dedup-powershell
chore: Deduplicate powershell code complete
2023-05-03 20:15:02 -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
Yuri Astrakhan
47cbc5f247 chore: Deduplicate powershell code complete
Makes powershell code more concise
2023-05-03 21:02:30 -04:00
Ed Page
543ad0ce06
Merge pull request #4878 from nyurik/dup-mangen
chore: remove dup code in mangen
2023-05-03 19:51:59 -05:00
Ed Page
ec52b74d68 refactor(help): Better call out long-pv policy 2023-05-03 19:48:48 -05:00
Yuri Astrakhan
a6d50e4219 chore: Remove dup code in mangen 2023-05-03 20:37:51 -04:00
Ed Page
9227ab1c7c refactor(help): Be consistent in join style 2023-05-03 19:25:44 -05:00
Ed Page
a8587c9d3e
Merge pull request #4876 from nyurik/dedup-format
refactor: Minor code dedup for writing possible vals
2023-05-03 18:51: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
1e0d76b51f docs: Update changelog 2023-05-02 14:07:17 -05:00
Ed Page
7b40f43278
Merge pull request #4875 from epage/panic
fix(parser): Update iterator sizes as we go
2023-05-02 14:06:36 -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
Ed Page
4fec57764a docs: Update changelog 2023-05-02 13:24:19 -05:00
Ed Page
a2131aeaf6
Merge pull request #4873 from Molkars/master
impl Eq<std::any::TypeId> for clap_builder::util::AnyValueId
2023-05-02 13:23:30 -05:00
Ed Page
be885673ab docs(ref): Fix feature name 2023-05-02 10:05:00 -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
9f6067f644 docs: Update changelog 2023-04-27 04:29:36 -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
6b23edc36a
Merge pull request #4864 from mattmadeofpasta/remove-redundant-test
test(help): Remove redundant test
2023-04-27 08:49:28 -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
Ed Page
43591bc1ee chore: Release 2023-04-21 07:42:44 -05:00
Ed Page
9bda2ac8a0 docs: Update changelog 2023-04-21 07:42:33 -05:00
Ed Page
c38b8ca66d
Merge pull request #4851 from ClementTsang/update_mut_arg_docs
docs: Update mut_arg docs on help + version flags
2023-04-21 07:41:41 -05:00
Clement Tsang
89bf732353
docs: Update mut_arg docs on help + version flags 2023-04-20 22:18:27 -04:00
Ed Page
3bc32de19f
Merge pull request #4848 from changhc/fix-escape-zsh
fix(complete): Escape special characters properly for zsh
2023-04-20 15:53:02 -05:00
Huan-Cheng Chang
a379bae895 fix: Escape special characters properly for zsh
Signed-off-by: Huan-Cheng Chang <changhc84@gmail.com>
2023-04-20 21:52:36 +02:00
Ed Page
65e5a705bc
Merge pull request #4846 from epage/align
fix(help): Preserve block indent when wrapping
2023-04-19 12:48:21 -05: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
71344749e7 test(help): Show indented wrap behavior 2023-04-19 11:37:03 -05:00
Ed Page
60c8c3fc31 chore: Release 2023-04-19 11:11:47 -05:00
Ed Page
e9b4c4769e docs: Update changelog 2023-04-19 11:11:34 -05:00
Ed Page
e429a9e98b
Merge pull request #4845 from epage/color
docs(help): Fill in styles docs
2023-04-19 11:10:44 -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
3f46258b45 docs: Update changelog 2023-04-18 15:52:09 -05:00