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

Merge pull request #3777 from epage/set

feat(builder): Set/Append Actions

b417e62ccd29a81b81ae5e01596d203b5835021a authored over 2 years ago
feat(builder): Set/Append Actions

This round out the new style actions and allow us to start deprecating
occurrences.

As part of ...

95c812b4112f4bb6e63d6501af2298d53d30c0b2 authored over 2 years ago
Merge pull request #3775 from epage/new

feat(parser): SetTrue/SetFalse/Count Actions

70767524c07565358e22f065301b9f419efa83f7 authored over 2 years ago
style: Make clippy happy

c58a802a1db62c0521dc8d27065666f824dd81ce authored over 2 years ago
Merge pull request #3774 from epage/action

feat(builder): Expose ArgAction

20ed49a535d14afac1972dd3cc3003c97bcc744f authored over 2 years ago
test(parser): Ensure conditional requirements work with new Actions

2e9e5563596d6c8826630bf24fa12961da56e1ee authored over 2 years ago
fix(parser): Don't double-increment index on flags

4afd1aafe5d7b16c729dd9df8782acd2437a2e37 authored over 2 years ago
fix(parser): Apply conditional defaults

Now that we can store constants for flags, we can apply defaults for
flags too.

Fixes #3294

06ea57277051f08275cf445c079ef54eb5fd0039 authored over 2 years ago
feat(parser): SetTrue/SetFalse/Count Actions

This is the minimum set of actions for the derive to move off of
`parse`. These are inspired by...

67f47c5618aa4b05cd96aa8bbb07d8c2f3bc1c92 authored over 2 years ago
feat(builder): Expose ArgAction

91480de6d2eaf3cdbe5ae743058a69cfc5b1a31d authored over 2 years ago
refactor(parser): Clarify intent of split_arg_values

7163f8d3e823e06d728812cb11e746aac0801130 authored over 2 years ago
feat(builder): Infer takes_vaue from action

e53dd937bee8bc96f617ded67b01355d288727b9 authored over 2 years ago
refactor(asserts): Ensure we always check positionals take values

b1b5820cb424fc89d7fd5797fa34994652f4ad2f authored over 2 years ago
refactor(parser): Clarify intent of push_arg_values

36680593bec619ad5c506166defabfd65f307d18 authored over 2 years ago
refactor(parser): Ensure action and are are in-sync

2b9598516163b2fc69643c7d96b9c75595eb4080 authored over 2 years ago
refactor(parser): Clarify Action::Flag's behavior

7264bf28c7d6e2819388ed8a89cabaca1e873932 authored over 2 years ago
refactor(parser): Loosen Action trait requirements

eeca65369719469d1cd97a77faef6afa526d6944 authored over 2 years ago
refactor(parser): Allow adding more actions in the future

fb99d2c625bd808bdececb81968924dc23a19383 authored over 2 years ago
Merge pull request #3773 from epage/pending

refactor(parser): Extract Actions from Parser

66567d16a49c70f99070ae7cc0ac4f603b27d2ee authored over 2 years ago
style: Make clippy happy

8af7294a26c3100d392fe9c25ecae85584169dcb authored over 2 years ago
style: Fix debug typoe

12d145c60de163fd8c9d41c28a53fa3afc9f88a2 authored over 2 years ago
refactor(parser): Be explicit about not not iterating over every value

70b633b0ea5f78fe0eca2f4c14b7ffee4b4f7171 authored over 2 years ago
fix(parser): Restore positional occurrence behavior

This fixes a compatibility issue introduced in 9805fdad1b17fde2f5860969de84d7eb4d8f2b51

5a55f4a8635a95956029046397dfd9c84ff15d0a authored over 2 years ago
fix(parser): Qualify the type of action

My hope is to add group actions as well, so we need to qualify what kind
of action this is.

c052a976b8ab0e85e75f98a224319fc27c82ee8c authored over 2 years ago
fix(parser): Restore interleaved positional behavior

If we felt this was important long-term, we should fix this outside of
the Action. Since we mig...

cb6f7b783ac644f2b08b16ab08262425f5a70553 authored over 2 years ago
refactor(parser)!: Switch flag values to Actions

This changes how occurrences and values are grouped for multiple values.
Today, it appears as a ...

f2a219e77d6769dd9089307f2df31d70bbc5060d authored over 2 years ago
test(parser): Verify interleaved group behavior

bba83cb2afbfc90f3a08ece33956cd27c1b4a4c1 authored over 2 years ago
refactor(parser): Switch positionals to actions

bf7259d6441573bbc8cefc86913b16e1e76b456f authored over 2 years ago
Merge pull request #3771 from epage/ref

docs(derive): Make raw attribute more discoverable

e43bd1fa7c6726ebce5ea1417f71790a274aaf3e authored over 2 years ago
docs(derive): Make raw attribute more discoverable

Based on feedback in #3189

b39d3d4f2bf8bfa6491ab58b16074b7db73606b4 authored over 2 years ago
refactor(parser): Allow more match-state

6f5aaab44313b5924c0fca4e95a51f2e29571b90 authored over 2 years ago
refactor(parser): Don't track the actual identifier

When creating `PendingValues`, I can't have the lifetime. I could make
it a `Cow` but decided t...

0b5de2198ee932742f655ccca87afedd99610f79 authored over 2 years ago
refactor(parser): Be more explicit that default missing values is not escaped

2d8a15453edf9c4df5800497af7565ae5c764fc3 authored over 2 years ago
refactor(parser): Switch defaults/envs to actions

There is a default_missing_vals case which is slightly different because
its not actually a defa...

dc8a7d420e45839d42aedcb7fb40c20d9f29c070 authored over 2 years ago
refactor(parser); Switch default_missing_vals to actions

a98075e9cd037ff8e04a3288ff38e301c79d004c authored over 2 years ago
refactor(parser): Match default_missing_vals to rest

f0b2924f36173c7a0d55cdc86006c5954e8f30bc authored over 2 years ago
refactor(parser): Extract an occurrence into a reaction

e1c5cba5f9d4b4ac4ad3cba983e7f3bd7f8b5683 authored over 2 years ago
refactor(parser): Generalize the performing of actions

b862fe227a53b97b13dcd33892e08319e2914708 authored over 2 years ago
refactor(parser): Separate delimiting from storing

7b6bb3298577bc83aa1a5c17887604f80f930f7e authored over 2 years ago
refactor(parser): Normalize Arg variable names

e4271d09d914aaf9f4c3a5b8cce820097ddcd348 authored over 2 years ago
Merge pull request #3765 from epage/refactor

fix(parser): Make behavior more consistent

54a153021b39803843c45a0fa976bc5ea0898bda authored over 2 years ago
style: Fix typos

e41a65d5407b62ebbd69737a85710e57c5014d59 authored over 2 years ago
refactor(parser): Clarify intent for defaults/envs

Especially important is not inferring intent from occurrences as
hopefully that will change with...

8f16f2ea41e6d1097f164b1e0a4f3bc5dcc19893 authored over 2 years ago
refactor(parser): Clarify all ignored parse results

2a409be7a5ba5a42f8283177c4e10a91fa08e5bc authored over 2 years ago
refactor(parser): Make it more clear when we ignore parse results

ac8320ddb23b7ce20c0e70607664384fe882d65d authored over 2 years ago
fix(parser): Always end on required delimited arg

Before, if we were in trailing values that aren't delimite, we wouldn't
respect this flag and en...

9f4686714ac8b3b263da1fc75873ff863c14de94 authored over 2 years ago
refactor(parser): Clarify value consumption name

e268dbfbe9f672f4ce76e8c1e7eada881cc25a63 authored over 2 years ago
refactor(parser): Be more explicit in default_missing_values

I wrote these tests expecting to highlight a bug but it turns out things
were structured just ri...

c72f03e53f6993b4c453d59940887978d700f294 authored over 2 years ago
Merge pull request #3764 from nyurik/patch-1

fix cargo.toml link

92287c81810fc08b95f90e9c70dadf6755be186d authored over 2 years ago
fix cargo.toml link

3fd5e4bc33b47b851005ec6c61b9925ab7a226cc authored over 2 years ago
fix(parser): Always use delimiter on defaults/env

Doesn't make sense to respect how the command line ended

302bf63678b63b028fdae569a3c06ed1d9d2ba7b authored over 2 years ago
fix(parser): Allow delimiting default_missing_values

Fixes #3761

ccc809a9df18541297a3be758200ddb277e5cd19 authored over 2 years ago
refactor(parser)!: Consolidate group/occurrence logic

We were independently starting occurrences and starting value groups.
Now we do them at the same...

9805fdad1b17fde2f5860969de84d7eb4d8f2b51 authored over 2 years ago
fix(parser): Pass the intended flag to the action

Inferred flags can make it hard for a future action to trigger behavior
off of the selected alia...

28cb71cdddb1beb50d70a78bf0060403b378c152 authored over 2 years ago
Merge pull request #3759 from epage/deprecated

fix: Remove deprecation warning

03ed233ca7d6fab41e72150cad54bbf133b17ac6 authored over 2 years ago
refactor(parser): Consolidate help/version handling

This is a step towards user-visible actions

868320097ee0bc708070eedf5efbaaf6e6bff251 authored over 2 years ago
fix: Remove deprecation warning

f082f499ea93d0c814450b92ff039d9e774a3b86 authored over 2 years ago
Merge pull request #3758 from epage/cleanup

refactor(parser): Remove dead code

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

e8e5890f0814cd0190a9ca2df0f38ac37914056c authored over 2 years ago
Merge pull request #3756 from epage/regex

fix(validator): Deprecate validator_regex

d7879f107cd2bcf99013b70023ca268a4a0e94e0 authored over 2 years ago
fix(validator): Deprecate validator_regex

Fixes #3743

ae97550638caf9cc655244c6578f84139ec70fc4 authored over 2 years ago
Merge pull request #3755 from epage/factory

feat(parser): Allow people to plug into 'value_parser' macro

52c1841d878cc5a0f883ab81d5a0770956d66cb0 authored over 2 years ago
feat(parser): Allow people to plug into 'value_parser' macro

For most users, this won't be worth doing, they can just specify the
parser if needed. Where th...

fcdd31781b911f1badc42aa8087361738d00c860 authored over 2 years ago
Merge pull request #3753 from epage/deprecate

fix: Deprecate value_parser predecesor

999647f6a07c4af9638f861bfc522ea328abc5d3 authored over 2 years ago
test(derive): Update for deprecations

408ca3c5d770cd81698ba7a23206c21599d8f316 authored over 2 years ago
fix(parser): Deprecate is_valid_arg

814d30b1defea27e78f320ad41cc0c2406552480 authored over 2 years ago
fix: Deprecate allow_invalid_utf8

f15a1aab1a17976b099df47a47577c15cb3aec84 authored over 2 years ago
fix(parser): Deprecate `value_of` and friends

a712adefcd83d279d99abb51af9540a0d040afc8 authored over 2 years ago
fix(parser): Error, don't panicon on get_many type mismatch

9b5b49ceec66781d64ccf39e0cbff390145c3d82 authored over 2 years ago
fix: Deprecate possible_values

256643f8d3bc67e7c0ff85f33323d68efa03b994 authored over 2 years ago
fix: Deprecate forbid_empty_values

573d496bc6bacc757aedf98d50a2cfd4ea391fd5 authored over 2 years ago
fix: Deprecate validator / validator_os

`validator_regex` is being ignored for now as I await on a comment
period for #3743

177511dab1c714fb1cf8f0517fcdc60a7922e527 authored over 2 years ago
fix(parser): Show cause of panic in backtrace

5b6d68f24738f1484dacdd99e6bb44fd958cd1bb authored over 2 years ago
Merge pull request #3752 from epage/panic

fix(parser): Improve panic messages for get_one, etc

a9b3acfc409fdee75bb22d3bceb0ea81d260b2f8 authored over 2 years ago
fix(parser): Improve panic messages for get_one, etc

a1df333ccd69b3222d1bfb385650b559b90babc9 authored over 2 years ago
Merge pull request #3751 from epage/try

fix(parser): Simplify the common getter API

ef3121cbdf938fef9a6b2dc199bc15998043939a authored over 2 years ago
docs(parser): Fix links

bac68e5d308e172c6aee228a6d046ea763c609df authored over 2 years ago
docs(parser): Fix typos

18793d9db7e4f4f8ce2b02283ee04d84177d5776 authored over 2 years ago
docs(parser): Group args / subcommand funcs separately

21be77c8543e46dbb49bc66834f2bf2f3d4e77ba authored over 2 years ago
fix(parser): Simplify the common getter API

Clap has focused on reporting development errors through assertions
rather than mixing user erro...

eda0ca54c162ad29c2428d38953805051b956779 authored over 2 years ago
Merge pull request #3750 from epage/iter

fix(parser): Switch to concrete iterators

5aea9adbb64a9c5b46e3c8e0f3656aa15775ca63 authored over 2 years ago
style: Make clippy happy

53948db66f117e2efeaa0a6969e520213968e126 authored over 2 years ago
fix(parser): Default construct ArgMatches::remove_many's Iterator

78b6f1ee644408077e5636f6c58c0869d7c47c91 authored over 2 years ago
fix(parser): Default construct ArgMatches::get_many's Iterator

2891a73b2e31ef670090406799e5e76c50e3b5eb authored over 2 years ago
fix(parser): Default construct ArgMatches::get_raw's Iterator

a4e8cc96f9603ac1a060b1b66294a556d1b6eafb authored over 2 years ago
Merge pull request #3747 from epage/clone

fix(parser): Clean up remove types

0c4a4f17de918beb5602b0cf9521daaca2a3da8f authored over 2 years ago
fix(parser): Clean up remove types

The remove functions no longer return `Arc` but the core type, at the
cost of requiring `Clone`....

ed45de2f0340f0831df8cab980e758cd71e34cef authored over 2 years ago
Merge pull request #3746 from epage/fixes

fix(parser): Increase compatibility between old/new approach

bf86f763064cd053bb5fecdfbfc8caf394c5ae59 authored over 2 years ago
docs(example): Update for value_parser

33e94df2123b695b8447f2dcb23e429bc4123a07 authored over 2 years ago
fix(help): Show possible values long help

9a913c40e1ed038c0e5c509d59ef70bad1a3ac44 authored over 2 years ago
fix(derive): Improve where errors point

a997ee7e10c8ea96128e470512f81a2332b16a2e authored over 2 years ago
fix(error): Include PossibleValuesParser values in error

c6a3871544cc76b38f3631b8771c056c19eebad9 authored over 2 years ago
fix: Include value_parser in debug output

30f28798248deacaab95a64cb710a99861b2445b authored over 2 years ago
docs(ref): Update for _ref derive

b3847d12f0fbccb27adfd89d47e3d74fe2b4fff6 authored over 2 years ago
fix(error): Remove usage from value validation

When to show usage? We are currently mixed about it. For `validator`,
we didn't show it at all...

15616bbd133d2d778296d7105e21da0da942af5b authored over 2 years ago
Merge pull request #3742 from epage/derive3

feat(derive): Allow users to opt-in to `ValueParser`

19dac49fab853f154477c9d8f7208fc2946faab8 authored over 2 years ago
doc(derive): Update for value_parser

e23800e10e104084a06e030b205b27620d230415 authored almost 3 years ago
fix(help): Show value_parser's PossibleValues

852a1b15d477b78eac8b900b74b79030aacb0ce0 authored almost 3 years ago
fix(parser): Print proper upper range bound

5b4ea8e56ee5906d75fe38ee69555a98b987f2c1 authored almost 3 years ago
refactor(derive): Separate concerns when removing

2fba6155ecd6dfc5ed7b7d07eeb64ecf123733f0 authored almost 3 years ago