Ed Page
d9685bcc71
refactor(help): Bypass outer usage layer
2023-11-09 12:52:08 -06:00
Ed Page
25e3a87d3c
refactor(help): Consolidate arg line usage generation
2023-11-09 12:14:25 -06:00
Ed Page
83981a7f7b
refactor: Pull out arg usage line
2023-11-09 12:08:24 -06:00
Ed Page
0c668c3915
refactor(help): Pull out bin name logic
2023-11-09 12:03:35 -06:00
Ed Page
7472aba6ce
refactor(help): Clarify usage condition
2023-11-09 12:00:52 -06:00
Ed Page
676e934a61
refactor(help): More directly write args
2023-11-09 11:57:15 -06:00
Ed Page
acdd2c33f0
refactor(help): Make usage argument order consistent
2023-11-09 11:50:46 -06:00
Ed Page
da98eb1a05
refactor(help): Pull out top-level usage logic
2023-11-08 11:49:07 -06:00
Ed Page
f50800f763
refactor(help): Only trim the end on usage
2023-11-08 11:42:54 -06:00
Ed Page
f04f04111b
refactor(help): Switch usage creation to writing
2023-11-08 11:25:43 -06:00
Ed Page
6f7174cc7c
refactor(help): Pull out usage separator
2023-11-08 11:10:55 -06:00
Ed Page
b055d3d4c0
Merge pull request #5200 from epage/group
...
docs(ref): Be clear about implicit ArgGroup behavior
2023-11-07 14:12:11 -06:00
Ed Page
dbd013eab1
docs(ref): Be clear about implicit ArgGroup behavior
2023-11-07 13:47:05 -06:00
Ed Page
28425e484f
style(docs): Resolve warnings
2023-11-07 13:44:41 -06:00
C19
8fa681608b
proc-macro2 bump to 1.0.69 to fix unknown feature proc_macro_span_shrink
...
https://github.com/dtolnay/proc-macro2/issues/398
2023-11-02 03:52:47 +08:00
renovate[bot]
14fd853fb9
chore(deps): update compatible (dev) ( #5192 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-01 01:03:46 +00:00
Ed Page
5ebe30b972
chore(ci): Update pre-commit hooks
2023-10-26 09:14:51 -05:00
Ed Page
9bfa5a338c
chore: Release
2023-10-24 13:25:07 -05:00
Ed Page
38b5a2f956
chore: Release
2023-10-24 11:45:21 -05:00
Ed Page
e485448b89
docs: Update changelog
2023-10-24 11:44:41 -05:00
Ed Page
f801a03c1b
Merge pull request #5181 from alexcrichton/smaller-is-number
...
Reduce code size of testing tokens if they're a number
2023-10-24 11:43:31 -05:00
Alex Crichton
9a9aabc178
refactor: Reduce code size of testing tokens if they're a number
...
This commit is a tiny win in compiled code size of a final binary
including `clap` which shaves off 19k of compiled code locally.
Previously tokens were checked if they were a number by using
`.parse::<f64>().is_ok()`, but parsing floats is relatively heavyweight
in terms of code size. This replaces the check with a more naive "does
this string have lots of ascii digits" check where the compiled size of
this check should be much smaller.
2023-10-24 09:17:45 -07:00
Ed Page
1b84314fb4
Merge pull request #5176 from epage/dep
...
chore: Bump completest
2023-10-16 14:29:25 -05:00
Ed Page
dcced5ae6a
chore: Bump completest
2023-10-16 13:16:40 -05:00
Ed Page
f4319bcbf2
Merge pull request #5174 from kpreid/patch-1
...
docs: Fix doc link to `Arg::trailing_var_arg`.
2023-10-14 20:18:17 -05:00
Kevin Reid
71c1e59334
docs: Fix doc link to Arg::trailing_var_arg
2023-10-14 18:11:33 -07:00
Ed Page
deebc1f91d
Merge pull request #5172 from epage/style
...
style: Make clippy happy
2023-10-12 08:48:00 -05:00
Ed Page
dfebb54423
style: Make clippy happy
2023-10-12 08:32:59 -05:00
Ed Page
5ab2bab62f
Merge pull request #5169 from joshtriplett/minimal-dev-deps
...
Remove unused dev-dependencies
2023-10-10 07:42:31 -05:00
Josh Triplett
416b1a8da7
fix: Remove unused dev-dependencies
...
These dependencies are used elsewhere in clap, but not in these crates.
`cargo test` and `cargo check --examples` both still pass with these
dependencies removed.
2023-10-10 20:11:33 +08:00
Ed Page
1806e28c67
chore: Be consistent in MSRV precision
2023-10-05 20:18:35 -05:00
Ed Page
bac82ef6de
chore: Update from '_rust/main'
2023-10-05 14:52:37 -05:00
Ed Page
5e3b324b5e
chore(ci): Ensure MSRV is quoted
...
Switching from specifying patch to not, with a minor version with a
trailing zero, is causing YAML to convert `1.70` to `1.7`.
2023-10-05 14:41:40 -05:00
Ed Page
29f22c193c
Merge pull request #5160 from epage/docs
...
docs: Provide custom version/help flag examples
2023-10-04 17:01:16 -05:00
Ed Page
da7ebca04e
docs: Provide custom help flag example
2023-10-04 16:25:31 -05:00
Ed Page
e74864f88a
docs: Provide custom version flag example
2023-10-04 16:22:46 -05:00
Ed Page
74beef55a9
Merge pull request #7 from peter-kehl/readme_pass_markdown_lint
...
README.md list indentation and no bare URLs, as per Markdown Lint VS Code extension
2023-10-02 15:49:33 -05:00
Ed Page
84999391d0
Merge pull request #6 from peter-kehl/readme_use_crates_io_link_placeholder
...
README.md 'Crates Status' icon link
2023-10-02 15:45:58 -05:00
Ed Page
af2c130138
Merge pull request #5152 from clap-rs/renovate/actions-checkout-4.x
...
chore(deps): update actions/checkout action to v4
2023-09-30 21:17:25 -05:00
renovate[bot]
4054a0c1a5
chore(deps): update compatible (dev) ( #5151 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-01 01:52:25 +00:00
Ed Page
f97fa94168
Merge pull request #8 from epage/renovate/actions-checkout-4.x
...
chore(deps): update actions/checkout action to v4
2023-09-30 20:38:32 -05:00
renovate[bot]
061432acab
chore(deps): update actions/checkout action to v4
2023-10-01 01:38:02 +00:00
renovate[bot]
6d3f888975
chore(deps): update actions/checkout action to v4
2023-10-01 01:37:07 +00:00
Peter Kehl
cad9b47171
README.md list indentation and no bare URLs, as per Markdown Lint VS Code extension.
2023-09-29 23:04:45 -07:00
Peter Kehl
305798083f
README.md 'Crates Status' icon link now uses the Markdown placeholder/substitution name 'Crates.io'
2023-09-29 22:59:44 -07:00
Ed Page
39f5e807af
chore: Release
2023-09-28 14:36:28 -05:00
Ed Page
a5cb6bb988
docs: Update changelog
2023-09-28 14:36:12 -05:00
Ed Page
418c0017a6
Merge pull request #5146 from epage/update
...
chore: Upgrade anstream
2023-09-28 14:35:44 -05:00
Ed Page
485b957c4b
chore: Upgrade anstream
2023-09-28 14:13:54 -05:00
Ed Page
a1af8d9ad8
chore: Update from '_rust/main'
2023-09-26 08:22:27 -05:00