Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/clap-rs/clap
A full featured, fast Command Line Argument Parser for Rust
https://github.com/clap-rs/clap
`clap::Error::raw` was producing ambiguity errors with a default generic
parameter on `clap::err...
feat: Allow turning off error-context, auto-help, and auto-usage
c26e7fd617cd3c532e464e23ffa9bc1138c1fd49 authored over 2 years agoQuality of error-context goes down with this.
745fa9927a3c968d58cf0283a9d4fc3c9e2ea21c authored over 2 years agobfa365a2ccf700ded93d76484f2bc904f6afd251 authored over 2 years ago
80f616a4b3e4e6d2d36771b65a3464da821a4a59 authored over 2 years ago
553a93efc86b4ef7cdaae11806690f19bfc03e58 authored over 2 years ago
This removes auto-generated help, saving about 50 KiB.
7a5dad89ff9753ac53171318ecc15b3a65e475bf authored over 2 years ago6ea5d4630017407311f2f0f702bd127258a53a5c authored over 2 years ago
9036d3fd3c8047039b143c29fd340d36844d8861 authored over 2 years ago
This takes off another 14 KiB when color us not used. My hope is that
we'll be able to switch a...
This is a cheap pass at creating this to allow cutting out the cost of
rich error information / ...
b4788d51f16d21abf17d6ba4de0628e553c21a21 authored over 2 years ago
ba9e6d052ab2216f412865e70086afae36605253 authored over 2 years ago
94c5802aae42e1f65580e09d680995eeba9604ac authored over 2 years ago
fix(help): Separate command flags like options
746481cc56e90d96288eb0f76ff9f8b9b2cb24a2 authored over 2 years agofix: Permissions syntax
f7dfb573fffe558d799026db4037d6cac115473e authored over 2 years agoFixes #4232
e9f1287b639ddb5a05107f9c1662b69af195e521 authored over 2 years agoad05d1624b1d460297616a99b4e6fed2c38c7751 authored over 2 years ago
e03201efbe296619b257a7ee38522468dddd3a6e authored over 2 years ago
Update audit.yml
574641ac63a20f505c8bcea3d51317975675999a authored over 2 years agoefc49747e73e6355d056e323fca54281a40e446e authored over 2 years ago
perf: Switch to &'static str by default
6dc8c9943c2aaa9d50e2664847b8a7fa5ec06928 authored over 2 years agofix: Misc fixes found when optimizing code size
1365b08849dc0476bb1b5554acb6b9e4be36a88e authored over 2 years ago
Originally, clap carried a lifetime parameter. When moving away from
that, we took the approach...
This reverts commit 429143af4299327a816b9d50e13a4cfc3ba247a7.
fe43f0c9450487b850acae3c149a98bff3c6bb52 authored over 2 years agobbbaca2ffebeb5b004a18f26500bfe6a08cb360e authored over 2 years ago
This reverts commit c9d883a8c61357de487c0e08b7ab20d40a01ecef.
10854cd262a590fcce053c8069ec6edfcbf40324 authored over 2 years ago
This is a more familiar type for people and it didn't cost us anything
(in fact it undid the cod...
The overall hope is to allow a `&'static str`-only version of clap, so
we need to move off of `S...
4869c43612bc36783f4981708d2c5e01a70ef7c7 authored over 2 years ago
86b2fe5a2d048cdcf7fa90b326f6cb598f65d371 authored over 2 years ago
af9e1b97639c899093671e4b207c24dd2d248757 authored over 2 years ago
3cadb8f2559ac162e54e86bdc362e223374d3d69 authored over 2 years ago
Originally, I saw the ideal as the parent command being isolated from
`#[clap(flatte)]` especial...
This makes us accept `str` and not do any allocations at the cost of
panicing if unsupported whi...
This dropped a fraction of a KiB but it will at least not cause people
to ask if it'd help to si...
This was broken in #4168
417f1a9813e28af026be68bf84eed6f7138a659b authored over 2 years agofix(parser): Quote the suggested help
71cdd240e59928b873ccfd1c9124ecbddd5411c3 authored over 2 years agoWe do it elsewhere but here it is only distinguished coloring.
Inspired by #4218
0184cf008a6f85af4c44f5aa21423e6b514d7ad0 authored over 2 years agofix(parser): Prefer invalid subcommands over invalid args
0479d8eb403b3ebb40e8a5b8e61e1a7a6220ef2c authored over 2 years ago
Just having `--help` or `--version` can make us get invalid args instead
of invalid subcommands....
69c2d65ca9c8f8412fa73482ca99ab8f1cd7511a authored over 2 years ago
feat: Allow resetting builder methods
7ee121a2e0527879bd48f7cb9fd52f8d61db4123 authored over 2 years agoFixes #4178
23ce67e3230681765197a8bcf089bfcf5495b0aa authored over 2 years agoWith `Into<OsStr>`, the separate function isn't needed.
f68500d9fd13509fa1f5e93f5bc0c24aebd7c500 authored over 2 years agodocs: Clarify role of max_term_width
ee387c66f97a509a0e6d13907d39d419a8682996 authored over 2 years agoda9691d369deb97d99053e9658ca369ad6aa1235 authored over 2 years ago
feat(derive): Reserve behavior needed for implicit ArgGroups
d2503a4a88826904fea31fb1a44cee22f0650eea authored over 2 years ago
Since the `name` is changed to be the package name, we can't use it as
(1) its not as predictabl...
01c0975678206a8b8fbd50b13f513c36f48efa6d authored over 2 years ago
3bfa9d5ff03dd92cb5a5014be8880c2f09f34f09 authored over 2 years ago
fix(help): Respect LINES and COLUMNS
79321f25e42a2fa17dc0fd77527a9971b1ab3a82 authored over 2 years agoFixes #4186
0eb95022a54246ceb8bd9a9e2fcdb34fe4a995c8 authored over 2 years ago07604982006cb4ad802ebc5e607e7bc2c8726fc3 authored over 2 years ago
fix: Make `arg!(--flag <value>)` optional by default
1466cd5f55c47d14121b5a125e18071e7221b30a authored over 2 years ago
This was ported over from the usage parser which modeled after docopt.
We just never got around ...
75a73f3fe01b61382d00bceae1aea6fe776439b3 authored over 2 years ago
a86e55ad3ed53d69c874e04f92d19092298f764f authored over 2 years ago
fadcaf9860ab822b00ec039b226c1ca31bcbe7da authored over 2 years ago
6f185a870410b9d6cd0902a40b03d4e46ad0d3ac authored over 2 years ago
fix: Tests/clippy/errors bash dynamic completion
bf98110adc1bfc90b044ac7faf6acd784f17f7df authored over 2 years agoa2cf7f1dea40fdfe50edf0b088ffd03bbea92c11 authored over 2 years ago
revert(derive): Bald action/value_parser are deprecated, its good enough
4e703d1e2e3c68e59b8e3919fe316af48a415e2b authored over 2 years agodocs(parser): Clarify needs for negative numbers
430a384984ac753c5e3ce20a35fefd69258c2a41 authored over 2 years agoperf(assert): Don't make release pay the cost
81c3925bb8cd976280de3d550ea4ce4583ee6509 authored over 2 years agofa7a1fca589f6487a7ef0b8e550a701232bafdc9 authored over 2 years ago
afeed4043cc4dae818ab5df104fc24ffa36ab21f authored over 2 years ago
When I removed these in v5, we didn't have a deprecation approach for
the derive and I didn't wa...
b502ac750bb28960fcaab1505382385ea0831ae3 authored over 2 years ago
This came up in a [reddit
discussion](https://www.reddit.com/r/rust/comments/vbep9q/clap_32_last...
985a1b9b4a992fb3f0152876a6f89b09ad3c33cc authored over 2 years ago
fix(help): Make output more dense
c95c9f2fac6a1eaa7e000027e482bc3d9878ad70 authored over 2 years ago
In looking at other help output, I noticed that they use two spaces, in
place of clap's 4, and i...
ed6475e9deab0ccf7e228cc97b89fa21802337e9 authored over 2 years ago
The existing behavior is hard to explain, so this is the best I've
figured is going on.
876da97d1ccebf84b15a25df7a9e895bdf6a2fdd authored over 2 years ago
d3fc37b6787de5bcf5131a0bbb55c578a4f5cfa2 authored over 2 years ago
fix(help):Be dense on short next line help
65c289784bf958dbbc94a202c167f13834b4b29a authored over 2 years ago
If short help is too long for the terminal, clap will automatically
switch to next line help. A...
69dd14576767aa0fafb7cac5f9d71f99225b8c42 authored over 2 years ago
b7b12ea558860d4e9cf302afcca670dd1af6f0fb authored over 2 years ago
55e229717447fe59f451e201cbe50360f718ead2 authored over 2 years ago
docs: Show how last can be used
4cb42c640d28c541ef1c04dd4b5f4d8ca5cc26b8 authored over 2 years ago
We can't quite get git's behavior because it has `last` as both before
and after `--`
fix(help): Collapse usage to one line
a228df39b84a2ba2c00e669dd34baaaa16fab53f authored over 2 years ago
After looking at more examples, I've become more attached to this
briefer format.
Part of #4132
9a645d2d19101c1235159d0b59c7a93a80c973a1 authored over 2 years agofix(parser): Resolve problems around `allow_hyphen_values`
f97670aca8c14ae2a1515605ba03bdbb9d4ccda8 authored over 2 years agoBetter to set on individual args
1258f3e5f6d65683947c0dbca5e6b50dd0e73982 authored over 2 years ago8ad29ef3376361d73e456336aa3538d61145980d authored over 2 years ago
16d5a2a19afb47c790f4bd8cbeee94a42164021d authored over 2 years ago
2ebe5ae7951800d9253a2f1629025b55e0e6be5a authored over 2 years ago
Fixes #3450
d45e4be14bc77562deac740e7a287f26fd2204ac authored over 2 years ago94a5e7fa1ab3faa5876c28bc49a46160f976df86 authored over 2 years ago
7a2bbca62bf245970866d3de76293de435dc8dbe authored over 2 years ago
This makes it match up with `Command::allow_hyphen_values` which was the
guiding factor for what...
Now that we have it on `Arg`, we don't need it on `Command`
bffce7f57a278d6e9026491c1d47933b987c61f2 authored over 2 years agobc5c5e4a9f4610b06bec577888f22a5198a94d8e authored over 2 years ago
This has been a bit out of place being on the command. Now its clearer
what the user intends to...
refactor: Use parameters over settings
f731ce70e4a4adece56b632e85e48d7c7645831f authored over 2 years ago1dd9245fffa6966095e6e69892ff198f1fb2e89a authored over 2 years ago