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

fix(parser): Deprecate ArgMatches::is_present

9caec5a52d008ae33761cc3d94cdb161d77ea25b authored over 2 years ago
Merge pull request #3813 from epage/anon

fix: Open the door for adding value_parser! specializations

d5e2622df99e4b89a41502abc7a2c8b191dc0e00 authored over 2 years ago
Merge pull request #3812 from epage/discourage

fix: Further discourage `value_parser!` implementation details

cf3ad4fca65fe9d40265347ddb59d012ca805d52 authored over 2 years ago
fix: Open the door for adding value_parser! specializations

I wanted to make the contract more clear that we might add more specific
value parsers in the fu...

f87fd0325c4f628e175dc08d0fa42dd7875fe4e9 authored over 2 years ago
fix: Further discourage direct use of ValueParserVia*

af0751c757ca0c13a63c0e073c499698b77787ed authored over 2 years ago
fix: Further discourage direct use of AutoValueParser

8b37be4b01cb4fb934f308bbbbdd85e828043854 authored over 2 years ago
fix(assert): Allow required flags

Newstyle flags have defaults which prevents them from being required
until now.

fce1125ba98cd749225e25fb487b37ddcbfcc30c authored over 2 years ago
feat(parser): Provide updated version if 'is_present'

- This matches the more container-like naming we are aiming for
- This provides an opportunity t...

9b7813558c4465ed27f347e6ac8272f4b1964bbc authored over 2 years ago
docs(parser): Clarify we want arg ids

This was missed in #3453

54125aca5502a9d7ce635e18cae327a31b4cc67a authored over 2 years ago
Merge pull request #3811 from epage/error

fix(parser): Always include pending arguments in errors

aa9ca76b60f94ae3adf949d945df436e622a7949 authored over 2 years ago
fix(parser): Always include pending arguments in errors

Found via cargo's UI tests

e70b3ff47bef3be760b258c31d180d4188f282a9 authored over 2 years ago
Merge pull request #3810 from epage/count

perf(parser): Take up less memory with ArgAction::Count

356ac55ce809f4b8840c5e59c0f2f3dcb1dd1467 authored over 2 years ago
perf(parser): Take up less memory with ArgAction::Count

Someone should not reasonably expect a coun flag to go up to billions,
millions, or even thousan...

31b22d1a51fb17dc5127c153f9c7d5a243f69493 authored over 2 years ago
fix(parser): Prevent rollover of count

acfb130b0d1397065dc6d4e3b4b1d07547d7c3ca authored over 2 years ago
docs: Update changelog

cb86785c7f0f2cbc08de347a3c3db5b4a176a73c authored over 2 years ago
Merge pull request #3806 from epage/changelog

docs: Update changelog

4b505ddf12468680c3cde277b0529415b62102e8 authored over 2 years ago
Merge pull request #3805 from epage/visibility

fix(builder): Clean up after hiding `AnyValueParser`

653e121bccd3172b2fb9dd406f844ca3245c8e21 authored over 2 years ago
perf(builder): Avoid Arc for value parsers

There isn't a strong need for the single-instance at the cost of the
extra book keeping.

01b5e1ee5b7343ae22b72a46bd07e8421160318c authored over 2 years ago
fix(builder): Move trait requirements closer to the user

My hope is this will provide clearer error messages for the user.

d73ff562d198775d8fefae88f33fd180df1f7701 authored over 2 years ago
fix(parser): Hide AnyValue

With `AnyValueParser` now private, we can also make `AnyValue` private.
Most users should not ne...

4dc0136b2c177682dec3a347ef4388c94c391ab9 authored over 2 years ago
Merge pull request #3804 from epage/version

fix(assert): Reslve regressions for auto-help / auto-version

a849a28a044813152cf4b40476af8fc4b6b98c9e authored over 2 years ago
fix(assert): Don't assert in more cases

ebf21a3280acd8849be142b50c7eda2a79a93de3 authored over 2 years ago
fix(builder): Fix regression with auto-help / auto-version

c61a105e622cdaefa514c71bdde288d33c163be2 authored over 2 years ago
fix(builder): Dump action in debug output

035bc804d188294c109c9e8161faa834a6296f19 authored over 2 years ago
fix(builder): Make it easier to debug globals

3052fece16ca1ca965cff5608337c406860d2d8b authored over 2 years ago
docs: Update changelog

588c46b6c6740bab6987ca30d89ca19824657d40 authored over 2 years ago
Merge pull request #3801 from SabrinaJewson/private-any-value-parser

Make `AnyValueParser` private

731408ee8088709d2cb3d510f426d5cc1ccaca8f authored over 2 years ago
fix: Appease CI

560f0c076aa4d67ace1e5273352a9ce33b399aff authored over 2 years ago
refactor: Make `AnyValueParser` private

6e49bf7419d52e4f815e6718dc4362d16f1403be authored over 2 years ago
Merge pull request #3802 from epage/refactor

refactor(builder): Reduce visibility

b1bda293d414249dc4d0f0ee6be7697f807b1b7c authored over 2 years ago
refactor(builder): Reduce visibility

aba2a9e84d4918decc4a2d57b7840e4cdace28d4 authored over 2 years ago
Merge pull request #3800 from epage/deprecate

fix(help): Deprecate NoAutoVersion/NoAutoHelp

4331cd29ab832d5bc7b5a791e4bea326b53f1473 authored over 2 years ago
fix(assert): Reference help_expected

10bb9abb1a260b125b6117431c01a37e30ca2cd6 authored over 2 years ago
fix(help): Deprecate NoAutoVersion/NoAutoHelp

I'm a bit disappointed we don't have a way to control the action for the
help subcommand. Inste...

28781d677315d1fac3a30cc4c9c2dad976cfed0f authored over 2 years ago
fix(assert): Check for version if user specifies ArgAction::Version

dffd7932b333d269bc8769e2fd0b4584b071c537 authored over 2 years ago
Merge pull request #3799 from epage/value

fix(derive): Clarify ArgEnum as ValueEnum

912a62907040caf50913d57745987f8f7af9cc43 authored over 2 years ago
fix(derive): Clarify ArgEnum as ValueEnum

We aren't enumerating arguments but values for an argument, so the name
should reflect that.

Th...

9e38353442183fdafb0562712ddb02a845fb7d52 authored over 2 years ago
Merge pull request #3798 from epage/docs

docs(tutorial): Update for new API

0377051353432862e92b09c439835e9cf269a842 authored over 2 years ago
docs(tutorial): Update for new API

8dde489e3a69cf57a9f8d6077993de7a11ee6f0b authored over 2 years ago
Merge pull request #3797 from epage/deprecate

fix: Deprecate features redundant with Actions

3ded9276625b5ebe71ccf2d394e5a08342bcf111 authored over 2 years ago
test(derive): Update snapshots

11d93141ddba5dac16f58fbae0d7f0cdc36a18e9 authored over 2 years ago
fix(parser): Deprecate multiple_occurrences

Fixes #3772

14a62e11fd2aadb66982001d1ae30425bab61953 authored over 2 years ago
style: Make clippy happy

b78a0e6ccdc9770ea82bb6414bd61c2d113434ba authored over 2 years ago
fix(parser): Process overrides with new Actions

1abc9455457f342a2faf71c8563e61e9e6edee22 authored over 2 years ago
test: Ensure we don't break compatibility

55a705c447819562dbdb0568b070eae8c2580c8d authored over 2 years ago
refactor(test): Make it easier to fork tests

4a9c4dee64e275dae0653a8d5d95ebd2afd1d534 authored over 2 years ago
fix(derive): Transition off of multiple_occurrences

For programs opting into the clap v4 behavior (with `action` or
`value_parser` attributes), we'l...

19d8ca807f953a47338693e7429c723d9d68a421 authored over 2 years ago
perf(derive): Cache positional status

efc1520223b26358302c8b8e98898989d01e7a68 authored over 2 years ago
fix(parser): Force multiple occurrences with new Actions

This is needed for deprecate `multiple_occurrences`

7980c5ceb80677308fc2af094d2c55d32c856e88 authored over 2 years ago
docs: Reflect the dropping of occurrences_of

d88ca1373007e7f2597457e34572604d4bf1ef4c authored over 2 years ago
fix(parser): Deprecate occurrences_of

This mostly exist for
- Knowing of the value came from the command-line but we now have
`ArgMa...

86a162d1bb5e531e48faf6f84de0bf99cd479382 authored over 2 years ago
test: Improve failure output

f0cc8b8d25078d8bea96eeab802275d7cb7c011b authored over 2 years ago
fix(parser): Deprecate args_override_self

This shouldn't be needed anymore now that this is effectively the new
behavior for the non-depre...

1428785677cb109437af57f90ac4b10bb3f89f0b authored over 2 years ago
fix(parser): Deprecate max_occurrences

a979cf9bb8c3ddeec212d31ef45665c61e9c0081 authored over 2 years ago
feat(builder): Offer u64 ranges

0ba63664fe147f1b8525197fd42661e24eac477b authored over 2 years ago
fix(parser): Deprecate StoreValue / IncOccurrences Actions

Dropping these will help simplify a lot, including removing of
occurrences.

These come at the c...

1879826b218a341c49d39f356edd5a3ed6d7cede authored over 2 years ago
refactor(parser): Be explicit in checking present values

4a694f3592b702f86c7a6846b867b61d9feff5fe authored over 2 years ago
Merge pull request #3794 from epage/derive

feat(derive): Expose control over Actions

805cce74c6dc5d5be738b86406de73c9121a8edc authored over 2 years ago
feat(derive): Expose control over Actions

This is the derive support for #3774 (see also #3775, #3777)

This combined with `value_parser` ...

647896d929e01c9b1247c7b8b5e970559a1bacc4 authored over 2 years ago
Merge pull request #3793 from epage/required

fix(validator): Ignore defaults for requireds

955f8b627afcc01374b68d2534827ca933e8771a authored over 2 years ago
feat(parser): Allow querying whether actions take values

4489f09f10a4e4b260a673b452882ddb4aa04dc0 authored over 2 years ago
fix(validator): Ignore defaults for requireds

This is a follow up to #3420. Its easy to overlook this because it is only
useful for the condi...

0f1de7303d82e80499f6293b99157a49719fc4df authored over 2 years ago
refactor(parser): Remove dead code

ac6439191011a72eb2fab26cf22e2165ac212e0b authored over 2 years ago
Merge pull request #3789 from epage/refactor

refactor: Prep for actions in derive

44e1095166443b88d92079a26660eb34df1dd26c authored over 2 years ago
test(derive): Update ui tests

002204a122f4b89d09512114a944d80f8ed2c9b3 authored over 2 years ago
refactor(parser): Clarify we are working with ids, not names

5f56e93c0f5b58b7fe0e409fc200c1ec22833382 authored over 2 years ago
fix(help): Don't report flag defaults

Now that flags can have meaningful defaults and with defaults being
implicitly set for certain a...

a3092bafcee702cf5672ef53e17440f252ca6a37 authored over 2 years ago
test(derive): Improve help output assertions

11fbe7e54bc4a9247099d3928f67195a2ed36986 authored over 2 years ago
test(derive): Verify doc comments on ArgEnum

b09def1ad0daffdb1dc4eeea63a840d9a5a2dc4e authored over 2 years ago
fix(help): Output some bool possible values

Originally I hid all, assuming the flag-only use case but we had to
prevent that from showing up...

ccd6663de9a6b2b8d3c2a15c308b417de2fd077b authored over 2 years ago
test(parser): Verify indices of defaults

I thought I had broken this but it always seemed to have worked this way

a97134600499fdb86ceb587876a3be6638add9dd authored over 2 years ago
chore: Make it easy to reproduce CI docs run

d56d8dd59ef0f50b019871012caf6e3bcd395464 authored over 2 years ago
fix(parser): Exclusive shouldnt preclude defaults

Unsure why a comment said this doesn't matter. It matters both for
counting arguments and for r...

9638f33d2fbf752f1332cf2e7b6ab0febb73ad18 authored over 2 years ago
fix(error): Don't include default-but-required arguments in usage

f3bc3d5eb71ac22230bfdbdeba16dc6d05ee49c8 authored over 2 years ago
fix(builder): Make it easier to discover/access ArgAction

52e2874c030ed680d0f831b62af8731f89c75c9c authored over 2 years ago
Merge pull request #3787 from epage/bench

refactor(bench): Pull out benchmarks into own crate

844dbae96b1f52c59efe05f3443d88655efc3da6 authored over 2 years ago
refactor(bench): Pull out benchmarks into own crate

This is mostly about avoiding criterion's build times when just
developing clap itself.

I'm ass...

34368419c291d02cecd746c58ffc628e2b1eb199 authored over 2 years ago
Merge pull request #3786 from epage/default

fix(parser): Provide default value for Actions

8dd7d649774372f0d2ee8c6f1ca8645dec6cf1b9 authored over 2 years ago
fix(parser): Provide default value for Actions

Actions were inspired by Python and Python does not implicitly default
any field when an action ...

e4b443d8bbd38970f3790fa31964c30b2710d080 authored over 2 years ago
Merge pull request #3783 from epage/refactor

refactor(derive): Prepare for action support

e8ad62b784b3430fbaf0f819c45330ab6c264d85 authored over 2 years ago
Revert "fix(parser): Don't treat missing values as missing args"

This reverts commit 50f4018dcfb1f33cb092780e27f14bfed5b0ed2c.

This broke compatibility with the...

002d4421e57b35b9284fa32382d0d6a0f458e179 authored over 2 years ago
test(derive): Ensure we don't break compatibility

5db611384e52e5d471c339b606672d649c2be53c authored over 2 years ago
fix(derive): Adjust precedence for flag/occurrence logic

552e6feb3f0f0b2d82ff391145eee5e9b22cb5ad authored over 2 years ago
fix(derive): Reference correct path

e5f29116035281f017957f2f8b83943f07f7a2a1 authored over 2 years ago
refactor(derive): Give new-style highest precedence

This exposed a potential bug but I figure it isn't worth fixing without
actions.

f4004b653ba43e1f36c598e3046b67bcfd4d81b4 authored over 2 years ago
refactor(derive): Clarify functions role

ebf9c16a23fdb4f23fdc354b1d16bb5a42dd9ee6 authored over 2 years ago
fix(derive): Fix typo in error messages

cccc88bcc2fc4feeaaa9786266e8280328a1df5d authored over 2 years ago
Merge pull request #3782 from epage/parser

refactor(derive): Merge handling of bool/from_flag

77a0e66f6e4ebf63f760d5ddebcf1b748c0d12e4 authored over 2 years ago
Merge pull request #3781 from epage/get_one

fix(parser): Don't treat missing values as missing args

58cf0ee446f7d2a8e5c62ae60cb36f52f71ba01d authored over 2 years ago
fix(parser): Don't treat missing values as missing args

50f4018dcfb1f33cb092780e27f14bfed5b0ed2c authored over 2 years ago
fix(parser): Don't allow error equality

This could cause surprising results for users as we add fields

cc2714beab1a117787f5a907659dce6d8ae7b363 authored over 2 years ago
refactor(derive): Merge handling of bool/from_flag

This will make it easier to divide off parser logic for adding in
actions.

This does mean we ca...

773ba94c4e346c145a409ee9710ed1dc7dde95b7 authored over 2 years ago
test(derive): Update ui test to be correct otherwise

dfc55cd6e3bf6560767b43a5230f64151c3e84a2 authored over 2 years ago
refactor(derive): Default parser based on type

e5ead4ce498d9aad13a43948eb939c53bb402bf1 authored over 2 years ago
refactor(derive): Resolve value parsers earlier

f61aad4b343d47a5262db4ebb499f81118427026 authored over 2 years ago
refactor(derive): Simplify needs for finding the inner type

96ac83e26097afaf379173e71bc3fc6ee98a69c7 authored over 2 years ago
Merge pull request #3779 from epage/docs

docs(builder): Note the type for 'Count'

758f3fff18793a4b8b42bf364d89239180c46875 authored over 2 years ago
docs(builder): Note the type for 'Count'

ab08a3069a69b14d8f326d437df43b55e53e7148 authored over 2 years ago
Merge pull request #3778 from epage/unify

fix(derive): Align value parser's type with occurrences_of

ec9d180e115ab45c5010fe9acaff82bb4c0a7ef3 authored over 2 years ago
fix(derive): Align value parser's type with occurrences_of

bbab14828912d8cf5ae2ceee26573fe4f647d86e authored over 2 years ago