Commit graph

8330 commits

Author SHA1 Message Date
Ed Page
5babafd8f5 chore: Release 2024-12-03 14:32:56 -06:00
Ed Page
ac6b09cfe3 docs: Update changelog 2024-12-03 14:32:34 -06:00
Ed Page
18a81c4133
Merge pull request #5836 from omertuc/reqself
fix(assert): Prevent arguments from requiring self
2024-12-03 14:31:51 -06:00
Omer Tuchfeld
29d9e8844f fix(assert): Prevent arguments from requiring self
It's non-sensical for an argument to require itself, so it must be a
mistake, and should be prevented.

This is arguably a breaking change, but of the spacebar heating kind.

Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2024-12-03 20:02:45 +01:00
Omer Tuchfeld
52aad0ea1a test(asserts): Add test for self requires
Add a test that shows that clap doesn't complain when a flag requires
itself.

This test demonstrates existing broken behavior, ideally it should
panic.

It will be fixed in the next commit.

Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2024-12-03 20:02:40 +01:00
Omer Tuchfeld
bfca193556 refactor(asserts): Tuple destructuring
Use tuple destructuring to make the code clearer

Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2024-12-03 19:56:15 +01:00
renovate[bot]
b4ea2d4be9
chore(deps): Update Rust Stable to v1.83 (#5829)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-29 16:49:04 +00:00
Ed Page
d90cab02b8 style: Make clippy happy 2024-11-29 10:16:50 -06:00
Ed Page
10c4f63463
Merge pull request #5832 from 8LWXpg/patch-1
docs: fix command formatting
2024-11-29 09:01:09 -06:00
Ed Page
32bc56a547
Merge pull request #5831 from futreall/master
docs fix spelling issues
2024-11-29 09:00:03 -06:00
8LWXpg
518fedcd64
Update lib.rs 2024-11-29 22:08:03 +08:00
futreall
6f5fffcbc4
Update CONTRIBUTING.md 2024-11-29 11:43:18 +02:00
Ed Page
acabb8185d
Merge pull request #5830 from fuho/patch-1
docs: Update chapter_3.rs - missing "to"
2024-11-28 17:51:15 -06:00
ondrej
c6f185c3cd
Update chapter_3.rs - missing "to"
Adding missing "to"
2024-11-28 22:34:17 +01:00
Ed Page
fc55ad08ca
Merge pull request #5826 from epompeii/bencher
Slugify `github.repository` for Bencher
2024-11-25 13:31:28 -06:00
Everett Pompeii
c94b818d55 fix: Slugify github.repository 2024-11-24 22:22:32 -05:00
Ed Page
10c29ab75d
Merge pull request #5823 from megaserg/patch-1
docs: Fix docs for BoolishValueParser
2024-11-18 15:03:29 -06:00
Sergey Serebryakov
eb75bea913
Remove everything after comma 2024-11-18 20:43:04 +00:00
Sergey Serebryakov
5d282c560c
Fix docs for BoolishValueParser 2024-11-18 19:16:28 +00:00
Ed Page
2920fb082c chore: Release 2024-11-13 12:52:48 -06:00
Ed Page
8902627c2b docs: Update changelog 2024-11-13 12:52:22 -06:00
Ed Page
79d696f925
Merge pull request #5813 from epage/ignore
fix(parser): Fill in defaults on ignored error
2024-11-13 12:51:34 -06:00
Ed Page
479df35abd fix(parser): Fill in defaults on ignored error
This came up in #5812 and is especially problematic for derives.

Not really a fan of this solution but its the least invasive.
I also considered going wild with error recovery or moving towards a
solution for #1546.
2024-11-12 21:09:55 -06:00
Ed Page
a1d69ca824 refactor(parser): Split up parsing from post-processing 2024-11-12 15:04:53 -06:00
Ed Page
6827841930 test(parser): Show bad ignore_errors defaulting case 2024-11-12 15:04:53 -06:00
Ed Page
76d0049330 test(parser): Verify defaulting on errors 2024-11-12 15:04:53 -06:00
Ed Page
3f5c05ce38 test(parser): Ensure we are actually testing ignore_errors 2024-11-12 15:04:53 -06:00
Ed Page
ba4745dd11 chore(ci): Fix use of permissions 2024-11-12 14:47:27 -06:00
Ed Page
22944b4c35 chore(ci): Use matrix for tracking the runner 2024-11-12 14:46:25 -06:00
Ed Page
29b04fe66a chore(ci): Attempt to benchmark binary size 2024-11-12 14:43:07 -06:00
Ed Page
2e5c74423e
Merge pull request #5814 from epage/parse
refactor(parser): Remove redundant error check
2024-11-12 11:53:55 -06:00
Ed Page
551e0521f2 refactor(parser): Remove redundant error check 2024-11-12 11:38:56 -06:00
Ed Page
424a2431c9
Merge pull request #5811 from epage/notes
docs: Highlight notes/warnings in a block
2024-11-08 12:06:47 -06:00
Ed Page
6f78e2a3ff docs: Highlight notes/warnings in a block 2024-11-08 11:07:48 -06:00
Ed Page
c54ffa17f5 chore: Release 2024-11-04 09:55:55 -06:00
Ed Page
26eab7b4e5 docs: Update changelog 2024-11-04 09:55:44 -06:00
Ed Page
f275804c23
Merge pull request #5805 from epage/style
fix(complete): Adjust dynamic for MSRV
2024-11-04 09:55:08 -06:00
Ed Page
7c7742cae8 fix(complete): Adjust dynamic for MSRV 2024-11-04 09:48:16 -06:00
Ed Page
f1ae3c0e49 style: Make clippy happy 2024-11-04 09:44:03 -06:00
renovate[bot]
5c932b7079
chore(deps): Update Rust crate divan to v0.1.15 (#5798)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-01 04:22:14 +00:00
renovate[bot]
bc0537f589
chore(deps): Update compatible (dev) (#5797)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-01 01:29:21 +00:00
Ed Page
7a6475e3c1 chore: Release 2024-10-29 13:00:38 -05:00
Ed Page
0266c4197f docs: Update changelog 2024-10-29 13:00:31 -05:00
Ed Page
6ec0b43448
Merge pull request #5791 from okapia/zsh-default-fallback
fix(zsh): Use _default as the completion fallback where the ValueHint is Unknown
2024-10-29 12:58:18 -05:00
Oliver Kiddle
e40168c2fd fix(zsh): Use _default as zsh completion fallback
That is for a ValueHint of Unknown. This is consistent with bash where
compgen -f is used in such cases. In long experience with completions
distributed with zsh, the worst thing you can do is break filename
completion as that's the minimum most user's expect.
2024-10-28 21:16:38 +01:00
Ed Page
55a18f518b chore: Release 2024-10-23 20:24:16 -05:00
Ed Page
3b0563580d fix(complete): Ensure new enough clap is used 2024-10-23 20:24:07 -05:00
Ed Page
5d2cdac3e6 chore: Release 2024-10-23 20:17:03 -05:00
Ed Page
f1c10ebe58 docs: Update changelog 2024-10-23 20:16:56 -05:00
Ed Page
a4d1a7fe2b chore(ci): Take a break from template updates 2024-10-23 20:16:09 -05:00