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
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
551e0521f2
refactor(parser): Remove redundant error check
2024-11-12 11:38:56 -06:00
Ed Page
6f78e2a3ff
docs: Highlight notes/warnings in a block
2024-11-08 11:07:48 -06:00
Ed Page
61f5ee514f
chore: Release
2024-10-08 08:56:17 -05:00
Ed Page
a767a97c79
feat: Add CommandExt support
2024-10-02 12:25:56 -05:00
Ed Page
32853d7b19
refactor(builder): Make Ext code similar for Arg, Command
2024-10-02 12:24:35 -05:00
Ed Page
e9ce1be707
refactor(builder): Rename AppTag to AppExt
2024-10-02 12:24:15 -05:00
Ed Page
61ebe72203
chore: Release
2024-10-01 13:01:58 -05:00
Ed Page
13dad4c275
Merge pull request #5759 from clap-rs/renovate/unicode-width-0.x
...
chore(deps): Update Rust crate unicode-width to 0.2.0
2024-10-01 14:00:54 -04:00
renovate[bot]
fce38c1769
chore(deps): Update Rust crate unicode-width to 0.2.0
2024-10-01 04:15:19 +00:00
renovate[bot]
a618230f88
chore(deps): Update Rust crate terminal_size to 0.4.0
2024-10-01 00:37:02 +00:00
Ed Page
cbcbaa3ad4
style: Make clippy happy
2024-09-26 21:20:17 -05:00
Armandas Jarušauskas
6ffdd32d87
docs: fix small error in Arg::raw
2024-09-27 10:24:03 +09:00
Ed Page
0d142f6c04
chore: Release
2024-09-20 15:01:33 -05:00
Ed Page
c6b5d627a0
feat(builder): Expose get_display_order
2024-09-20 14:43:16 -05:00
Ed Page
19460ee00d
chore: Release
2024-09-04 14:16:31 -05:00
Ed Page
75365ad7d5
fix(help): Style arg groups
2024-09-04 14:07:59 -05:00
Ed Page
220597eb97
refactor: Clean up group formatting
2024-09-04 14:03:33 -05:00
Ed Page
8bd63d2721
refactor: Use newer anstyle API
2024-09-04 13:59:06 -05:00
Ed Page
df19cbb5eb
refactor(error): Avoid variable name ambiguity
2024-09-04 13:51:58 -05:00
Ed Page
dc13365938
fix(derive): Improve unsupported field type error message
...
This is a bit more unconventional but I think its sufficient improvement
to readability to justify it.
2024-08-28 14:03:29 -05:00
Ed Page
a3524273b1
fix(derive): Improve unsupported field type error message
2024-08-28 14:03:18 -05:00
Ed Page
a3a476407b
docs(derive): Specify Parser::update_from semantics
2024-08-16 14:08:26 -05:00
Ed Page
df165a2da4
docs(derive): Flatten isn't just for update
2024-08-16 13:54:04 -05:00
Ed Page
5488bcfa30
docs(derive): Connect more dots for Args/Subcommand
2024-08-16 13:15:20 -05:00
Ed Page
4094435c88
chore: Release
2024-08-09 19:24:38 -05:00
Ed Page
6d45f41415
docs(complete): Clarify dynamic's support for ValueHint
2024-08-09 15:14:33 -05:00
Ed Page
7d14ce34de
fix(builder)!: Move remove to reflection from builder
...
It isn't derive compatible, so I have the feeling it should be treated
differently.
2024-08-09 13:54:39 -05:00
Ed Page
d222ae4cb6
chore: Release
2024-08-08 11:09:07 -05:00
Gibson Fahnestock
6f215eee98
refactor(styles): make styles example use a const
...
This makes it easier to copy this example for use in the derive API,
like so:
```rust
const STYLES: Styles = Styles::styled()
.header(AnsiColor::Green.on_default().bold())
.usage(AnsiColor::Green.on_default().bold())
.literal(AnsiColor::Blue.on_default().bold())
.placeholder(AnsiColor::Cyan.on_default());
#[derive(Parser)]
#[clap(styles = STYLES)]
struct Cmd {
...
}
```
If you use the `|` method then it's not a constant function.
2024-08-08 15:04:32 +01:00
Ed Page
0c4c586083
docs(builder): Remove bad copy/paste docs
...
Fixes #5626
2024-08-07 15:26:05 -05:00
Ed Page
11538586eb
fix(ext)!: Make extension methods fluent
2024-08-07 10:40:07 -05:00
Ed Page
862a0ffe9b
docs: Include unstable-ext
2024-08-07 10:29:42 -05:00
Ed Page
ddd3b0c6b7
refactor(builder): Move ValueHint to an ArgExt
2024-08-02 09:59:46 -05:00
Ed Page
19f935aa61
feat(builder): Add Extension API
2024-08-02 09:46:44 -05:00
Ed Page
280d921dee
refactor(buider): Simplify Extension's design
2024-08-02 08:49:48 -05:00
Ed Page
4edfd7220a
docs: Mark unstable-styles feature as deprecated
2024-08-02 08:22:31 -05:00
Ed Page
99f1fa6b51
docs: Cross-link color control to Command::styles
...
Inspired by #5590
2024-08-01 09:52:50 -05:00
Ed Page
66b5a122ec
chore: Release
2024-07-31 16:26:41 -05:00
Ed Page
360bb3bc11
fix(help): Properly wrap subcommand about
...
Fixes #5607
2024-07-31 16:17:40 -05:00
Ed Page
d18615dfc0
chore: Release
2024-07-31 12:20:00 -05:00
Ed Page
82912c3a51
style: Make clippy happy
2024-07-26 14:24:08 -05:00
Ed Page
78daebd4ec
chore: Upgrade backtrace
2024-07-26 09:36:43 -05:00
Ed Page
4a00677024
chore: Release
2024-07-25 08:39:13 -05:00
Ed Page
8697a6134b
chore: Release
2024-07-23 10:32:00 -05:00
Ed Page
73b07c9ab5
docs: Remove stale ColorChoice platform notes
...
This was called out in #5590
2024-07-20 12:14:22 -05:00