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
9caec5a52d008ae33761cc3d94cdb161d77ea25b authored over 2 years ago
fix: Open the door for adding value_parser! specializations
d5e2622df99e4b89a41502abc7a2c8b191dc0e00 authored over 2 years agofix: Further discourage `value_parser!` implementation details
cf3ad4fca65fe9d40265347ddb59d012ca805d52 authored over 2 years ago
I wanted to make the contract more clear that we might add more specific
value parsers in the fu...
af0751c757ca0c13a63c0e073c499698b77787ed authored over 2 years ago
8b37be4b01cb4fb934f308bbbbdd85e828043854 authored over 2 years ago
Newstyle flags have defaults which prevents them from being required
until now.
- This matches the more container-like naming we are aiming for
- This provides an opportunity t...
This was missed in #3453
54125aca5502a9d7ce635e18cae327a31b4cc67a authored over 2 years agofix(parser): Always include pending arguments in errors
aa9ca76b60f94ae3adf949d945df436e622a7949 authored over 2 years agoFound via cargo's UI tests
e70b3ff47bef3be760b258c31d180d4188f282a9 authored over 2 years agoperf(parser): Take up less memory with ArgAction::Count
356ac55ce809f4b8840c5e59c0f2f3dcb1dd1467 authored over 2 years ago
Someone should not reasonably expect a coun flag to go up to billions,
millions, or even thousan...
acfb130b0d1397065dc6d4e3b4b1d07547d7c3ca authored over 2 years ago
cb86785c7f0f2cbc08de347a3c3db5b4a176a73c authored over 2 years ago
docs: Update changelog
4b505ddf12468680c3cde277b0529415b62102e8 authored over 2 years agofix(builder): Clean up after hiding `AnyValueParser`
653e121bccd3172b2fb9dd406f844ca3245c8e21 authored over 2 years ago
There isn't a strong need for the single-instance at the cost of the
extra book keeping.
My hope is this will provide clearer error messages for the user.
d73ff562d198775d8fefae88f33fd180df1f7701 authored over 2 years ago
With `AnyValueParser` now private, we can also make `AnyValue` private.
Most users should not ne...
fix(assert): Reslve regressions for auto-help / auto-version
a849a28a044813152cf4b40476af8fc4b6b98c9e authored over 2 years agoebf21a3280acd8849be142b50c7eda2a79a93de3 authored over 2 years ago
c61a105e622cdaefa514c71bdde288d33c163be2 authored over 2 years ago
035bc804d188294c109c9e8161faa834a6296f19 authored over 2 years ago
3052fece16ca1ca965cff5608337c406860d2d8b authored over 2 years ago
588c46b6c6740bab6987ca30d89ca19824657d40 authored over 2 years ago
Make `AnyValueParser` private
731408ee8088709d2cb3d510f426d5cc1ccaca8f authored over 2 years ago560f0c076aa4d67ace1e5273352a9ce33b399aff authored over 2 years ago
6e49bf7419d52e4f815e6718dc4362d16f1403be authored over 2 years ago
refactor(builder): Reduce visibility
b1bda293d414249dc4d0f0ee6be7697f807b1b7c authored over 2 years agoaba2a9e84d4918decc4a2d57b7840e4cdace28d4 authored over 2 years ago
fix(help): Deprecate NoAutoVersion/NoAutoHelp
4331cd29ab832d5bc7b5a791e4bea326b53f1473 authored over 2 years ago10bb9abb1a260b125b6117431c01a37e30ca2cd6 authored over 2 years ago
I'm a bit disappointed we don't have a way to control the action for the
help subcommand. Inste...
dffd7932b333d269bc8769e2fd0b4584b071c537 authored over 2 years ago
fix(derive): Clarify ArgEnum as ValueEnum
912a62907040caf50913d57745987f8f7af9cc43 authored over 2 years ago
We aren't enumerating arguments but values for an argument, so the name
should reflect that.
Th...
9e38353442183fdafb0562712ddb02a845fb7d52 authored over 2 years agodocs(tutorial): Update for new API
0377051353432862e92b09c439835e9cf269a842 authored over 2 years ago8dde489e3a69cf57a9f8d6077993de7a11ee6f0b authored over 2 years ago
fix: Deprecate features redundant with Actions
3ded9276625b5ebe71ccf2d394e5a08342bcf111 authored over 2 years ago11d93141ddba5dac16f58fbae0d7f0cdc36a18e9 authored over 2 years ago
Fixes #3772
14a62e11fd2aadb66982001d1ae30425bab61953 authored over 2 years agob78a0e6ccdc9770ea82bb6414bd61c2d113434ba authored over 2 years ago
1abc9455457f342a2faf71c8563e61e9e6edee22 authored over 2 years ago
55a705c447819562dbdb0568b070eae8c2580c8d authored over 2 years ago
4a9c4dee64e275dae0653a8d5d95ebd2afd1d534 authored over 2 years ago
For programs opting into the clap v4 behavior (with `action` or
`value_parser` attributes), we'l...
efc1520223b26358302c8b8e98898989d01e7a68 authored over 2 years ago
This is needed for deprecate `multiple_occurrences`
7980c5ceb80677308fc2af094d2c55d32c856e88 authored over 2 years agod88ca1373007e7f2597457e34572604d4bf1ef4c authored over 2 years ago
This mostly exist for
- Knowing of the value came from the command-line but we now have
`ArgMa...
f0cc8b8d25078d8bea96eeab802275d7cb7c011b authored over 2 years ago
This shouldn't be needed anymore now that this is effectively the new
behavior for the non-depre...
a979cf9bb8c3ddeec212d31ef45665c61e9c0081 authored over 2 years ago
0ba63664fe147f1b8525197fd42661e24eac477b authored over 2 years ago
Dropping these will help simplify a lot, including removing of
occurrences.
These come at the c...
1879826b218a341c49d39f356edd5a3ed6d7cede authored over 2 years ago4a694f3592b702f86c7a6846b867b61d9feff5fe authored over 2 years ago
feat(derive): Expose control over Actions
805cce74c6dc5d5be738b86406de73c9121a8edc authored over 2 years agoThis is the derive support for #3774 (see also #3775, #3777)
This combined with `value_parser` ...
647896d929e01c9b1247c7b8b5e970559a1bacc4 authored over 2 years agofix(validator): Ignore defaults for requireds
955f8b627afcc01374b68d2534827ca933e8771a authored over 2 years ago4489f09f10a4e4b260a673b452882ddb4aa04dc0 authored over 2 years ago
This is a follow up to #3420. Its easy to overlook this because it is only
useful for the condi...
ac6439191011a72eb2fab26cf22e2165ac212e0b authored over 2 years ago
refactor: Prep for actions in derive
44e1095166443b88d92079a26660eb34df1dd26c authored over 2 years ago002204a122f4b89d09512114a944d80f8ed2c9b3 authored over 2 years ago
5f56e93c0f5b58b7fe0e409fc200c1ec22833382 authored over 2 years ago
Now that flags can have meaningful defaults and with defaults being
implicitly set for certain a...
11fbe7e54bc4a9247099d3928f67195a2ed36986 authored over 2 years ago
b09def1ad0daffdb1dc4eeea63a840d9a5a2dc4e authored over 2 years ago
Originally I hid all, assuming the flag-only use case but we had to
prevent that from showing up...
I thought I had broken this but it always seemed to have worked this way
a97134600499fdb86ceb587876a3be6638add9dd authored over 2 years agod56d8dd59ef0f50b019871012caf6e3bcd395464 authored over 2 years ago
Unsure why a comment said this doesn't matter. It matters both for
counting arguments and for r...
f3bc3d5eb71ac22230bfdbdeba16dc6d05ee49c8 authored over 2 years ago
52e2874c030ed680d0f831b62af8731f89c75c9c authored over 2 years ago
refactor(bench): Pull out benchmarks into own crate
844dbae96b1f52c59efe05f3443d88655efc3da6 authored over 2 years ago
This is mostly about avoiding criterion's build times when just
developing clap itself.
I'm ass...
34368419c291d02cecd746c58ffc628e2b1eb199 authored over 2 years agofix(parser): Provide default value for Actions
8dd7d649774372f0d2ee8c6f1ca8645dec6cf1b9 authored over 2 years ago
Actions were inspired by Python and Python does not implicitly default
any field when an action ...
refactor(derive): Prepare for action support
e8ad62b784b3430fbaf0f819c45330ab6c264d85 authored over 2 years agoThis reverts commit 50f4018dcfb1f33cb092780e27f14bfed5b0ed2c.
This broke compatibility with the...
002d4421e57b35b9284fa32382d0d6a0f458e179 authored over 2 years ago5db611384e52e5d471c339b606672d649c2be53c authored over 2 years ago
552e6feb3f0f0b2d82ff391145eee5e9b22cb5ad authored over 2 years ago
e5f29116035281f017957f2f8b83943f07f7a2a1 authored over 2 years ago
This exposed a potential bug but I figure it isn't worth fixing without
actions.
ebf9c16a23fdb4f23fdc354b1d16bb5a42dd9ee6 authored over 2 years ago
cccc88bcc2fc4feeaaa9786266e8280328a1df5d authored over 2 years ago
refactor(derive): Merge handling of bool/from_flag
77a0e66f6e4ebf63f760d5ddebcf1b748c0d12e4 authored over 2 years agofix(parser): Don't treat missing values as missing args
58cf0ee446f7d2a8e5c62ae60cb36f52f71ba01d authored over 2 years ago50f4018dcfb1f33cb092780e27f14bfed5b0ed2c authored over 2 years ago
This could cause surprising results for users as we add fields
cc2714beab1a117787f5a907659dce6d8ae7b363 authored over 2 years ago
This will make it easier to divide off parser logic for adding in
actions.
This does mean we ca...
773ba94c4e346c145a409ee9710ed1dc7dde95b7 authored over 2 years agodfc55cd6e3bf6560767b43a5230f64151c3e84a2 authored over 2 years ago
e5ead4ce498d9aad13a43948eb939c53bb402bf1 authored over 2 years ago
f61aad4b343d47a5262db4ebb499f81118427026 authored over 2 years ago
96ac83e26097afaf379173e71bc3fc6ee98a69c7 authored over 2 years ago
docs(builder): Note the type for 'Count'
758f3fff18793a4b8b42bf364d89239180c46875 authored over 2 years agoab08a3069a69b14d8f326d437df43b55e53e7148 authored over 2 years ago
fix(derive): Align value parser's type with occurrences_of
ec9d180e115ab45c5010fe9acaff82bb4c0a7ef3 authored over 2 years agobbab14828912d8cf5ae2ceee26573fe4f647d86e authored over 2 years ago