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
a35df14cafc897776b21f8896abd6ebcad7e5688 authored almost 3 years ago
Only bothered to implement this for `value_parser` cases as `parse`
cases are going to be consid...
For clap 3, its opt-in as a precaution against breaking
compatibility in some weird cases.
This...
b52c7f115edac849ca130c09d3abd1ec8f432097 authored almost 3 years agotest: Re-enable ui tests
b202eed3d51685fbc06b980862d10f0eaf37a7da authored almost 3 years agofix(parser): Use optimized bool value parser
d1d67fd68d56d1f5adfb0a5ff8ce9ad736e25003 authored almost 3 years ago
`derive_ui.rs` did not have a marker for needing to be updated on MSRV
changes, so it got missed.
5171fce18676bece0d642a29f6c3d12a0bf964d0 authored almost 3 years ago
feat: Stablize multicall
5de36396668386e53f3e028e653f1348c9d68410 authored almost 3 years ago
`multicall` allows you to have one binary expose itself as multiple
programs, like busybox does....
This impacts the error code (#3676) and the error body and without
suggestions, its redundant.
In case the `ArgMatches` is cloned, this forces a constraint that the
underlying type impls `Clo...
d61552a8b8d66bb9f60480b25396ea00259a1ba2 authored almost 3 years ago
18f295029f4ce88c3aeb1875943a99b704c5a087 authored almost 3 years ago
b817c2d2a9301c1d71705cd35de1a0376a9b23af authored almost 3 years ago
fix: Switch to 2021 edition
17ec7757891a38965e8492f7a0a48e674a9536eb authored almost 3 years ago2abb6804d3bd31faabb8f44e70203e454523817a authored almost 3 years ago
d827364ea98247ba38a90656dd8b412f195936d7 authored almost 3 years ago
272334b26aa7bed4eb11131dfd2fb75726218702 authored almost 3 years ago
Right now, the aliasing is safe (the compiler says so!) but we're going
to be switching to a `&m...
1446be8a891ad5e9dbd2345a943b22bc054a4226 authored almost 3 years ago
feat(builder): Custom parser for arg values
28ee3d33f7c5c30f5e2dffe2a546763dac8b02d5 authored almost 3 years agoacdf26ac38c21f93b9516c82d924913a0aad321a authored almost 3 years ago
This is needed for `Bound::cloned` and fits within official MSRV policy
(2 versions back) and un...
c9e3b81e3c9220b6042e1db272b7bb2ba5903672 authored almost 3 years ago
675ac68f73e674d0e356db827b8ffc1c95bf6454 authored almost 3 years ago
91fe9eedc9e6685dba113981d15546c68098ffc6 authored almost 3 years ago
0033bf60c14ef1ce550983dd9f49e0c5282a2aa8 authored almost 3 years ago
There are several approaches with this
- `value_parser(N..M)`: creates an i64 range
- `value_par...
This makes life easier for people, whether they want a geneirc
`NonEmpty<impl TypedValueParser>`...
2ffa38f9f565a11f30079f3cf6b0da102b1bf58d authored almost 3 years ago
f86d881e3a4bc79660ff513f6ee566a71240e8e8 authored almost 3 years ago
d826ab94452494f5afee5ca379d1d8f4aab897cf authored almost 3 years ago
72c44a32e507a6c6331717aae2cf228312de57fd authored almost 3 years ago
41f13bd0ce894ec816b4a38a4174d42a7b48e45f authored almost 3 years ago
8c3f54063897e0874aa0ae2f73c21771fc566fb8 authored almost 3 years ago
c74d3fb045197a46c451537d8f52b7d9b459a8e7 authored almost 3 years ago
144cd4c3b794a5f22b3985749f4448c747470f09 authored almost 3 years ago
5532bfc83873fdbac9ce0225884aeee16517ff64 authored almost 3 years ago
This gives us more implementation freedom for the future.
792fb549900778586eaf2761cf0b8256855857b6 authored almost 3 years ago4845296949d6f727dc5f0b7a935541f3a11c35cd authored almost 3 years ago
d52be32e8e117f5bc9aad8d18724a079fdc3cfc3 authored almost 3 years ago
f9be3215c189cebab3181e2ecc0c4ff8ce4e6f97 authored almost 3 years ago
This allows reducing the use of `Clone`, especially in `clap_derive`.
d2ca18130e428d7a51708d4b8731d94989303f3c authored almost 3 years agof296c5ca7860e1c7d82e0988b8d3ff2d0a2d1f67 authored almost 3 years ago
c7bd8c891d71000d87d8e08ff72a48df31b62d91 authored almost 3 years ago
Fixes #3621
36236957e4ea3a58f44d8ecc599b775980c5b87c authored almost 3 years agoc331be98a50e6c2e8750abca0046fd63632484c4 authored almost 3 years ago
66570ee9d0f55e95fed184218727c7e7690a8e16 authored almost 3 years ago
7cb2a096d07f17fa034b072fd5d8ef6962a8987b authored almost 3 years ago
0e04367826408c88c320fc80acd9d903dcb56338 authored almost 3 years ago
8a58884459a927f4a8eb51e909ee37fddd116ded authored almost 3 years ago
e6b146847768bc09688f4e8321ad213c0fcd6179 authored almost 3 years ago
d538012a743b7ab71caee4febb39e6594d262e94 authored almost 3 years ago
0d6be4e1a8e652df2b643db0f8d11a11dafee58b authored almost 3 years ago
772c5e3821b1a6569a16ba3bbff88a23f0d7ff34 authored almost 3 years ago
9920d5baf5bebc02174b96f757e824da05cc6885 authored almost 3 years ago
This gives a little more implementation flexibility
8b582c30079fae033cf3968f3e3e529cd8fe019d authored almost 3 years agof16a6fb5a6b7dd1f3e9b6ce6d9bff35204267bd1 authored almost 3 years ago
This identified a problem with the blanket implementations for
`TypedValueParser`: it only worke...
6f2c4aff90d8a802a9ca3a3c34cd3bbac15a7a3c authored almost 3 years ago
f3d8ef248f9c237023703573dd5228719b6a7731 authored almost 3 years ago
This will let us replace `Arg::possible_values` completely by letting
completions check these.
2e57f1fca7cc62cb34d9f945c7990d359adb04a9 authored almost 3 years ago
ec186487b6a9be9a1ab3c5e791b13ded1c09f0d6 authored almost 3 years ago
In theory, directly implemented types should have higher precedence than
inferring from another ...
50e7308c2294d8f0112e4168c1d5b9b3e60c0616 authored almost 3 years ago
a3965918bc98059249f1e13ee6ec8af72e8e3cc6 authored almost 3 years ago
bc6da813bdd10d78384b3b9ea783da058ad8f026 authored almost 3 years ago
ecc5b2f3e9e1982352180ea4ced2e23af5d78e69 authored almost 3 years ago
2902f190e4b9413568bd52521a7c683ed5dc9c78 authored almost 3 years ago
a798858ced15c5324ae6495cde82eac3e04b3957 authored almost 3 years ago
73fc240c57c5650e9af260c1d68b907d565b3fd9 authored almost 3 years ago
9d07b3c02837ef263e310e168aab0cc0f31de5d2 authored almost 3 years ago
Still unsure what should be the default but this at least makes it
easier for people to choose.
To set the type, we offer
- `ValueParser::<type>` short cuts for natively supported types
- `Typ...
feat(builder): Updated min_value and required docs
740bb39f50883b5af97b62e041618d5433220245 authored almost 3 years agoa678baa4f46cc79eed6b7fecafe0dff751198045 authored almost 3 years ago
Unfortunately, we can't track using a `ValueParser` inside of `Command`
because its `PartialEq`....
cf0282bdae9b734cdf4770e518440bf7c8fcda59 authored almost 3 years ago
feat: Expose builder/parser modules
02b4fed2aa84eb452ef03f7dbafd4a97ac4780b4 authored almost 3 years ago17c99d2878a4768c128497477cc87c017ae050a6 authored almost 3 years ago
399c1388253fa3470a0f3cd5d41bb8f150302245 authored almost 3 years ago
The top-level API for clap is getting a bit bloated. By exposing these
modules, we'll be able t...
524e36cf1a67ee6a447d3615a70b065d2b4f5e60 authored almost 3 years ago
6635237037b0a53011d9d9b74d18158386c02922 authored almost 3 years ago
fix(macros): Add needed call for arg_enum
20d95d2b8cd3af53f08da5aa32734f9c109d4c88 authored almost 3 years agoFixes #3717
52f6939044acf84bc3a2fada1d0b6b6a15f581f4 authored almost 3 years agofix(assert): Make sure group members exist before using them
9713cd9ae420c885f793a79d9a4aeb65efbf0e40 authored almost 3 years ago
In #3711, we had a confusing assert about no non-default members of a
required group when there ...
fix(derive): Don't change case of Arg id's (unstable)
a57a4119a11c1825f533ae5fae97d26c0f8c3b16 authored almost 3 years ago
This will make it easier to reference arguments with different
attributes.
Fixes #3282
2e3540355ac3c2d641e76a913c64af5cf78c3f3f authored almost 3 years agof7e4dd23d6e11249346f2c6447722251a9e149c6 authored almost 3 years ago
ddc9d54f4191467da869b925c6bc027b3f398b60 authored almost 3 years ago
fe4888d6688ce5e8adc808b4a1f1f6a37723bf5e authored almost 3 years ago
fix(parser): Disambiguate whether built-in subcommands are escaped (unstable)
fbb01d8b3322ce43fc49073bda122ea1205a0b3b authored almost 3 years agoeb155786bbd3447594cba5c26c83093f4b5709e7 authored almost 3 years ago
65538e21a87bb90d51d10ab4a1f59c259b3554ce authored almost 3 years ago
feat(derive): Start `unstable-v4` feature flag
630dde7bf230dcd59f7e9502ed98a610e8f736d7 authored almost 3 years agoThis is split out of #3661 as several changes I'm working on need it.
1b63fbd6df49c8ec509bb9943e824068d046327e authored almost 3 years agofix(assert): Detect conflicting arguments (unstable)
36f8e470dde7d9abf7541b5b40e333973104b8a5 authored almost 3 years ago