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

feat(derive): Opt-in to inferred value_parser

a35df14cafc897776b21f8896abd6ebcad7e5688 authored almost 3 years ago
perf(derive): Reuse allocations where possible

Only bothered to implement this for `value_parser` cases as `parse`
cases are going to be consid...

7845e604e744e73f027a37963b55e785da3486b8 authored almost 3 years ago
feat(derive): Allow users to opt-in to `ValueParser`

For clap 3, its opt-in as a precaution against breaking
compatibility in some weird cases.

This...

b52c7f115edac849ca130c09d3abd1ec8f432097 authored almost 3 years ago
Merge pull request #3740 from epage/ui

test: Re-enable ui tests

b202eed3d51685fbc06b980862d10f0eaf37a7da authored almost 3 years ago
Merge pull request #3739 from epage/bool

fix(parser): Use optimized bool value parser

d1d67fd68d56d1f5adfb0a5ff8ce9ad736e25003 authored almost 3 years ago
test: Re-enable ui tests

`derive_ui.rs` did not have a marker for needing to be updated on MSRV
changes, so it got missed.

e0e7383300ba5fd5dc630aa07db1fe251b6bbb45 authored almost 3 years ago
fix(parser): Use optimized bool value parser

5171fce18676bece0d642a29f6c3d12a0bf964d0 authored almost 3 years ago
Merge pull request #3684 from epage/multicall

feat: Stablize multicall

5de36396668386e53f3e028e653f1348c9d68410 authored almost 3 years ago
feat(multicall): Stablize multicall

`multicall` allows you to have one binary expose itself as multiple
programs, like busybox does....

686b0379ce3baaebaa073ac027002ad82833bc51 authored almost 3 years ago
test(multicall): Conditionalize suggestion-related case

This impacts the error code (#3676) and the error body and without
suggestions, its redundant.

1a2b7acd60547d7f8709cfd9005fa263e1f333a8 authored almost 3 years ago
perf(derive): Reuse allocations for external subcommands

In case the `ArgMatches` is cloned, this forces a constraint that the
underlying type impls `Clo...

0628d041748d69a865c38460bfaefbaa85ce1494 authored almost 3 years ago
refactor(derive): Deconstruct arg matches into enums

d61552a8b8d66bb9f60480b25396ea00259a1ba2 authored almost 3 years ago
refactor(derive): Consistently handle sub matches

18f295029f4ce88c3aeb1875943a99b704c5a087 authored almost 3 years ago
refactor(derive): Separate sub flattening to avoid aliasing

b817c2d2a9301c1d71705cd35de1a0376a9b23af authored almost 3 years ago
Merge pull request #3736 from epage/edition

fix: Switch to 2021 edition

17ec7757891a38965e8492f7a0a48e674a9536eb authored almost 3 years ago
fix: Switch to 2021 edition

2abb6804d3bd31faabb8f44e70203e454523817a authored almost 3 years ago
style: Normalize manifests

d827364ea98247ba38a90656dd8b412f195936d7 authored almost 3 years ago
fix: List rust-version for all crates

272334b26aa7bed4eb11131dfd2fb75726218702 authored almost 3 years ago
refactor(derive): Don't alias arg matches

Right now, the aliasing is safe (the compiler says so!) but we're going
to be switching to a `&m...

5806e16dd4b64f0966b559070676c3fc268b3c96 authored almost 3 years ago
feat(derive): Allow destructively constructing from ArgMatches

1446be8a891ad5e9dbd2345a943b22bc054a4226 authored almost 3 years ago
Merge pull request #3732 from epage/domain

feat(builder): Custom parser for arg values

28ee3d33f7c5c30f5e2dffe2a546763dac8b02d5 authored almost 3 years ago
style: Make clippy happy

acdf26ac38c21f93b9516c82d924913a0aad321a authored almost 3 years ago
fix: Bump MSRV to 1.56.0

This is needed for `Bound::cloned` and fits within official MSRV policy
(2 versions back) and un...

4a733cd8796f1fc98b1617f455121baad8251f67 authored almost 3 years ago
doc(parser): Specify what unwraps are for

c9e3b81e3c9220b6042e1db272b7bb2ba5903672 authored almost 3 years ago
fix(parser): Give more flexibility for changes

675ac68f73e674d0e356db827b8ffc1c95bf6454 authored almost 3 years ago
feat(parser): Transfer ownership of sub-matches

91fe9eedc9e6685dba113981d15546c68098ffc6 authored almost 3 years ago
style: Address clippy complaints

0033bf60c14ef1ce550983dd9f49e0c5282a2aa8 authored almost 3 years ago
feat(parser): Convenient range value parsers

There are several approaches with this
- `value_parser(N..M)`: creates an i64 range
- `value_par...

63aa236141479678c0177b2e0470af810343154c authored almost 3 years ago
feat(parsr): Expose all built-in TypedValueParsers

This makes life easier for people, whether they want a geneirc
`NonEmpty<impl TypedValueParser>`...

6b0306df9e7913d3f1b0b748fd2b2e3e1d795394 authored almost 3 years ago
feat(parser): Implicitly turn possible values into a value parser

2ffa38f9f565a11f30079f3cf6b0da102b1bf58d authored almost 3 years ago
docs(parser): Polish ValueParser docs

f86d881e3a4bc79660ff513f6ee566a71240e8e8 authored almost 3 years ago
fix(derive): Move args to new 'get_one'/'get_many' API

d826ab94452494f5afee5ca379d1d8f4aab897cf authored almost 3 years ago
fix(derive): Move subcommands to new 'get_many' API

72c44a32e507a6c6331717aae2cf228312de57fd authored almost 3 years ago
feat(complete): Path value parsers imply Path completion hints

41f13bd0ce894ec816b4a38a4174d42a7b48e45f authored almost 3 years ago
refactor(parser): Clarify name for starting occurrences

8c3f54063897e0874aa0ae2f73c21771fc566fb8 authored almost 3 years ago
refactor(parser): Reduce visibility

c74d3fb045197a46c451537d8f52b7d9b459a8e7 authored almost 3 years ago
refactor(parser): Group default/env

144cd4c3b794a5f22b3985749f4448c747470f09 authored almost 3 years ago
refactor(parser): Clarify env code

5532bfc83873fdbac9ce0225884aeee16517ff64 authored almost 3 years ago
fix(parser): Be consistently strict with ArgMatches types

This gives us more implementation freedom for the future.

792fb549900778586eaf2761cf0b8256855857b6 authored almost 3 years ago
refactor(parser): Clarify default value code

4845296949d6f727dc5f0b7a935541f3a11c35cd authored almost 3 years ago
fix(parser): Don't bake-in ArgEnum

d52be32e8e117f5bc9aad8d18724a079fdc3cfc3 authored almost 3 years ago
refactor(parser): Minor clean up

f9be3215c189cebab3181e2ecc0c4ff8ce4e6f97 authored almost 3 years ago
feat(parser): Allow removing values from ArgMatches

This allows reducing the use of `Clone`, especially in `clap_derive`.

d2ca18130e428d7a51708d4b8731d94989303f3c authored almost 3 years ago
refactor(parser): Fix naming of ty

f296c5ca7860e1c7d82e0988b8d3ff2d0a2d1f67 authored almost 3 years ago
perf(parser): Don't allocate on every call

c7bd8c891d71000d87d8e08ff72a48df31b62d91 authored almost 3 years ago
fix(parser): Allow invalid id lookups without panics

Fixes #3621

36236957e4ea3a58f44d8ecc599b775980c5b87c authored almost 3 years ago
fix(parser): Separate dev errros from user errors

c331be98a50e6c2e8750abca0046fd63632484c4 authored almost 3 years ago
refactor(parser): Set source at start of occurrence

66570ee9d0f55e95fed184218727c7e7690a8e16 authored almost 3 years ago
refactor(parser): Force explicit occurrence start

7cb2a096d07f17fa034b072fd5d8ef6962a8987b authored almost 3 years ago
fix(parser): Consistently log parser

0e04367826408c88c320fc80acd9d903dcb56338 authored almost 3 years ago
refactor(parser): Initialize MatchedArg from its source

8a58884459a927f4a8eb51e909ee37fddd116ded authored almost 3 years ago
fix(parser): Set source/occurrences for external subcommands

e6b146847768bc09688f4e8321ad213c0fcd6179 authored almost 3 years ago
refactor(parser): separate concerns over external subcommands

d538012a743b7ab71caee4febb39e6594d262e94 authored almost 3 years ago
refactor(parser): Consistently start occurrences

0d6be4e1a8e652df2b643db0f8d11a11dafee58b authored almost 3 years ago
feat(lex): Allow checking if at end of input

772c5e3821b1a6569a16ba3bbff88a23f0d7ff34 authored almost 3 years ago
fix(parser): Improve AnyValue debug output

9920d5baf5bebc02174b96f757e824da05cc6885 authored almost 3 years ago
refactor(parser): Make AnyValue opaque

This gives a little more implementation flexibility

8b582c30079fae033cf3968f3e3e529cd8fe019d authored almost 3 years ago
refactor(parser): Move AnyValue definition closer to use

f16a6fb5a6b7dd1f3e9b6ce6d9bff35204267bd1 authored almost 3 years ago
doc(parser): Expand examples for ValueParser

This identified a problem with the blanket implementations for
`TypedValueParser`: it only worke...

bdf9d841ef441651d6c3a56843cd881f51497e0e authored almost 3 years ago
refactor(parser): Clean up ValueParser

6f2c4aff90d8a802a9ca3a3c34cd3bbac15a7a3c authored almost 3 years ago
feat(complete): Complete value_parser possible values

f3d8ef248f9c237023703573dd5228719b6a7731 authored almost 3 years ago
feat(parser): Track ValueParser's possible values

This will let us replace `Arg::possible_values` completely by letting
completions check these.

0088b1643c31ed08bd341a5602f2db50a24e1963 authored almost 3 years ago
fix(parser): Disallow empty paths

2e57f1fca7cc62cb34d9f945c7990d359adb04a9 authored almost 3 years ago
refactor(parser): Have ValueParser delegate built-ins

ec186487b6a9be9a1ab3c5e791b13ded1c09f0d6 authored almost 3 years ago
refactor(parser): Tweak specialization precedence

In theory, directly implemented types should have higher precedence than
inferring from another ...

352025f8cbc39063def8a6c5f69bdb9443a70ad2 authored almost 3 years ago
refactor(parser): Reduce chance of bugs in specialization

50e7308c2294d8f0112e4168c1d5b9b3e60c0616 authored almost 3 years ago
doc(parser): Explain built-in motivation

a3965918bc98059249f1e13ee6ec8af72e8e3cc6 authored almost 3 years ago
fix(parser): Unify handling of AnyValue's type id

bc6da813bdd10d78384b3b9ea783da058ad8f026 authored almost 3 years ago
feat(parser): Support ArgEnum with ValueParser

ecc5b2f3e9e1982352180ea4ced2e23af5d78e69 authored almost 3 years ago
refactor(error): More flexible callers

2902f190e4b9413568bd52521a7c683ed5dc9c78 authored almost 3 years ago
feat(parser): Verify possible values

a798858ced15c5324ae6495cde82eac3e04b3957 authored almost 3 years ago
refactor(env): Generalize bool policy

73fc240c57c5650e9af260c1d68b907d565b3fd9 authored almost 3 years ago
feat(parser): non-empty string ValueParser

9d07b3c02837ef263e310e168aab0cc0f31de5d2 authored almost 3 years ago
feat(parser): Expose env-like bool parsers

Still unsure what should be the default but this at least makes it
easier for people to choose.

56aaf0baf25ac9e7b17961da29d298defc2ff59d authored almost 3 years ago
feat(parser): Add type information to arg values

To set the type, we offer
- `ValueParser::<type>` short cuts for natively supported types
- `Typ...

200f6626dbc897695f65ec0ae3e4213b664adfb9 authored almost 3 years ago
Merge pull request #3728 from AndreasBackx/issue/3259

feat(builder): Updated min_value and required docs

740bb39f50883b5af97b62e041618d5433220245 authored almost 3 years ago
feat(builder): Updated min_value and required docs

a678baa4f46cc79eed6b7fecafe0dff751198045 authored almost 3 years ago
refactor(parser): Track str/OsStr values via Box

Unfortunately, we can't track using a `ValueParser` inside of `Command`
because its `PartialEq`....

dcf69d1c874c9ea9fe428c2931e0631ae93176b0 authored almost 3 years ago
refactor: Remove dead code

cf0282bdae9b734cdf4770e518440bf7c8fcda59 authored almost 3 years ago
Merge pull request #3724 from epage/pub

feat: Expose builder/parser modules

02b4fed2aa84eb452ef03f7dbafd4a97ac4780b4 authored almost 3 years ago
test(derive): Unsure why this is failing

17c99d2878a4768c128497477cc87c017ae050a6 authored almost 3 years ago
fix: Soft-deprecate several items within the root

399c1388253fa3470a0f3cd5d41bb8f150302245 authored almost 3 years ago
feat: Expose builder/parser modules

The top-level API for clap is getting a bit bloated. By exposing these
modules, we'll be able t...

4fea1515b615e2a5aa0ebbdbe7709d74b8ff5f14 authored almost 3 years ago
chore: Release

524e36cf1a67ee6a447d3615a70b065d2b4f5e60 authored almost 3 years ago
docs: Update changelog

6635237037b0a53011d9d9b74d18158386c02922 authored almost 3 years ago
Merge pull request #3718 from epage/arg_enum

fix(macros): Add needed call for arg_enum

20d95d2b8cd3af53f08da5aa32734f9c109d4c88 authored almost 3 years ago
fix(macros): Add needed call for arg_enum

Fixes #3717

52f6939044acf84bc3a2fada1d0b6b6a15f581f4 authored almost 3 years ago
Merge pull request #3712 from epage/assert

fix(assert): Make sure group members exist before using them

9713cd9ae420c885f793a79d9a4aeb65efbf0e40 authored almost 3 years ago
fix(assert): Make sure group members exist before using them

In #3711, we had a confusing assert about no non-default members of a
required group when there ...

7c1f9123a4c48893824fa86eb3b47c98e9b0ca21 authored almost 3 years ago
Merge pull request #3708 from epage/rename_sub

fix(derive): Don't change case of Arg id's (unstable)

a57a4119a11c1825f533ae5fae97d26c0f8c3b16 authored almost 3 years ago
fix(derive): Don't change case of Arg id's (unstable)

This will make it easier to reference arguments with different
attributes.

Fixes #3282

2e3540355ac3c2d641e76a913c64af5cf78c3f3f authored almost 3 years ago
refactor(derive): Divide rename_all assertions

f7e4dd23d6e11249346f2c6447722251a9e149c6 authored almost 3 years ago
refactor(derive): Generalize test name

ddc9d54f4191467da869b925c6bc027b3f398b60 authored almost 3 years ago
refactor(derive): Group subcommand rename tests

fe4888d6688ce5e8adc808b4a1f1f6a37723bf5e authored almost 3 years ago
Merge pull request #3703 from epage/external

fix(parser): Disambiguate whether built-in subcommands are escaped (unstable)

fbb01d8b3322ce43fc49073bda122ea1205a0b3b authored almost 3 years ago
fix(parser): Assert on unknown args when using external subcommands (unstable)

eb155786bbd3447594cba5c26c83093f4b5709e7 authored almost 3 years ago
fix(derive): Detect escaped ambiguous subcommands (unstable)

65538e21a87bb90d51d10ab4a1f59c259b3554ce authored almost 3 years ago
Merge pull request #3702 from epage/derive

feat(derive): Start `unstable-v4` feature flag

630dde7bf230dcd59f7e9502ed98a610e8f736d7 authored almost 3 years ago
feat(derive): Start `unstable-v4` feature flag

This is split out of #3661 as several changes I'm working on need it.

1b63fbd6df49c8ec509bb9943e824068d046327e authored almost 3 years ago
Merge pull request #3701 from epage/required

fix(assert): Detect conflicting arguments (unstable)

36f8e470dde7d9abf7541b5b40e333973104b8a5 authored almost 3 years ago