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(error): Use a non-generic Error alias

`clap::Error::raw` was producing ambiguity errors with a default generic
parameter on `clap::err...

90bcb7f75ea1bb52a7c5fab13e36fa365ef8fb6d authored over 2 years ago
Merge pull request #4236 from epage/usage

feat: Allow turning off error-context, auto-help, and auto-usage

c26e7fd617cd3c532e464e23ffa9bc1138c1fd49 authored over 2 years ago
perf(help): Remove more from usage feature

Quality of error-context goes down with this.

745fa9927a3c968d58cf0283a9d4fc3c9e2ea21c authored over 2 years ago
feat(help): 'usage' feature flag for auto-genned usage

bfa365a2ccf700ded93d76484f2bc904f6afd251 authored over 2 years ago
refactor(parser): Clarify argument

80f616a4b3e4e6d2d36771b65a3464da821a4a59 authored over 2 years ago
refactor(help): Make usage optional

553a93efc86b4ef7cdaae11806690f19bfc03e58 authored over 2 years ago
feat(help): Break out help feature flag

This removes auto-generated help, saving about 50 KiB.

7a5dad89ff9753ac53171318ecc15b3a65e475bf authored over 2 years ago
refactor(help): Move near use

6ea5d4630017407311f2f0f702bd127258a53a5c authored over 2 years ago
refactor(help): Split out help templates

9036d3fd3c8047039b143c29fd340d36844d8861 authored over 2 years ago
perf(help): Reduce colorless code size

This takes off another 14 KiB when color us not used. My hope is that
we'll be able to switch a...

e75da2f8688f995b69deebf9ff2e2d43cdf46958 authored over 2 years ago
feat(error): Break out error-context feature flag

This is a cheap pass at creating this to allow cutting out the cost of
rich error information / ...

2d83a7b12ee8258932f5528084578717d5b96c72 authored over 2 years ago
fix(error): Provide a no-context alternative to RichFormatter

b4788d51f16d21abf17d6ba4de0628e553c21a21 authored over 2 years ago
feat(error): Provide abstraction for default formatter

ba9e6d052ab2216f412865e70086afae36605253 authored over 2 years ago
docs: Update changelog

94c5802aae42e1f65580e09d680995eeba9604ac authored over 2 years ago
Merge pull request #4235 from epage/help

fix(help): Separate command flags like options

746481cc56e90d96288eb0f76ff9f8b9b2cb24a2 authored over 2 years ago
Merge pull request #4230 from sashashura/patch-5

fix: Permissions syntax

f7dfb573fffe558d799026db4037d6cac115473e authored over 2 years ago
fix(help): Separate command flags like options

Fixes #4232

e9f1287b639ddb5a05107f9c1662b69af195e521 authored over 2 years ago
fix(help: Be more precise on literal vs not

ad05d1624b1d460297616a99b4e6fed2c38c7751 authored over 2 years ago
fix: Permissions syntax

e03201efbe296619b257a7ee38522468dddd3a6e authored over 2 years ago
Merge pull request #4225 from sashashura/patch-3

Update audit.yml

574641ac63a20f505c8bcea3d51317975675999a authored over 2 years ago
chore: Update audit.yml

efc49747e73e6355d056e323fca54281a40e446e authored over 2 years ago
Merge pull request #4223 from epage/string

perf: Switch to &'static str by default

6dc8c9943c2aaa9d50e2664847b8a7fa5ec06928 authored over 2 years ago
Merge pull request #4222 from epage/size

fix: Misc fixes found when optimizing code size

1365b08849dc0476bb1b5554acb6b9e4be36a88e authored over 2 years ago
perf: Switch to `&'static str` by default

Originally, clap carried a lifetime parameter. When moving away from
that, we took the approach...

c165b601acb4232b2748f8f455d3df4cf458f2c9 authored over 2 years ago
Revert "fix: Remove once_cell dependency from derive"

This reverts commit 429143af4299327a816b9d50e13a4cfc3ba247a7.

fe43f0c9450487b850acae3c149a98bff3c6bb52 authored over 2 years ago
perf: Hint to the compiler when once_cell isn't needed

bbbaca2ffebeb5b004a18f26500bfe6a08cb360e authored over 2 years ago
Revert "refactor: Remove once_cell dependency"

This reverts commit c9d883a8c61357de487c0e08b7ab20d40a01ecef.

10854cd262a590fcce053c8069ec6edfcbf40324 authored over 2 years ago
refactor(parser): Switch from `Box<str>` to `String`

This is a more familiar type for people and it didn't cost us anything
(in fact it undid the cod...

7ccaebb65d4838eb61e7a8e84988bd4a5c8dbbff authored over 2 years ago
refactor(parser): Track subcommands with Box<str>

The overall hope is to allow a `&'static str`-only version of clap, so
we need to move off of `S...

1e13109a2679e306be0e895e1fb034635a3831fa authored over 2 years ago
refactor: Simplify help subtree creation

4869c43612bc36783f4981708d2c5e01a70ef7c7 authored over 2 years ago
refactor(parser): Reduce work when validating args

86b2fe5a2d048cdcf7fa90b326f6cb598f65d371 authored over 2 years ago
refactor(parser): Don't throwaway work

af9e1b97639c899093671e4b207c24dd2d248757 authored over 2 years ago
docs(tutorial): Provide better default_value_t example

3cadb8f2559ac162e54e86bdc362e223374d3d69 authored over 2 years ago
fix(derive): Remove next_help_heading isolation

Originally, I saw the ideal as the parent command being isolated from
`#[clap(flatte)]` especial...

14c6ce0e838ef8d84c896254f02716e9e3c57c50 authored over 2 years ago
fix: Generalize `mut_arg`, like `mut_subcommand`

This makes us accept `str` and not do any allocations at the cost of
panicing if unsupported whi...

acb0fb780978d30b70e2d3a3921352e45677f98b authored over 2 years ago
perf: Misc simplifications for code size

This dropped a fraction of a KiB but it will at least not cause people
to ask if it'd help to si...

dbf2c86995bc2ac9fc28bb4fe67c4ec7caffb0e4 authored over 2 years ago
fix(derive): Read CARGO_PKG_NAME at runtime

This was broken in #4168

417f1a9813e28af026be68bf84eed6f7138a659b authored over 2 years ago
Merge pull request #4220 from epage/quote

fix(parser): Quote the suggested help

71cdd240e59928b873ccfd1c9124ecbddd5411c3 authored over 2 years ago
fix(parser): Quote the suggested help

We do it elsewhere but here it is only distinguished coloring.

Inspired by #4218

0184cf008a6f85af4c44f5aa21423e6b514d7ad0 authored over 2 years ago
Merge pull request #4219 from epage/sub

fix(parser): Prefer invalid subcommands over invalid args

0479d8eb403b3ebb40e8a5b8e61e1a7a6220ef2c authored over 2 years ago
fix(parser): Prefer invalid subcommands over invalid args

Just having `--help` or `--version` can make us get invalid args instead
of invalid subcommands....

b7d13dfb88d6517843ec71630e8c0ef44e20b8ad authored over 2 years ago
docs(contrib): Fix version support table

69c2d65ca9c8f8412fa73482ca99ab8f1cd7511a authored over 2 years ago
Merge pull request #4213 from epage/reset

feat: Allow resetting builder methods

7ee121a2e0527879bd48f7cb9fd52f8d61db4123 authored over 2 years ago
feat: Allow resetting builder methods

Fixes #4178

23ce67e3230681765197a8bcf089bfcf5495b0aa authored over 2 years ago
fix: Replace Arg::env with Arg::env_os

With `Into<OsStr>`, the separate function isn't needed.

f68500d9fd13509fa1f5e93f5bc0c24aebd7c500 authored over 2 years ago
Merge pull request #4212 from epage/width

docs: Clarify role of max_term_width

ee387c66f97a509a0e6d13907d39d419a8682996 authored over 2 years ago
docs: Clarify role of max_term_width

da9691d369deb97d99053e9658ca369ad6aa1235 authored over 2 years ago
Merge pull request #4209 from epage/prep

feat(derive): Reserve behavior needed for implicit ArgGroups

d2503a4a88826904fea31fb1a44cee22f0650eea authored over 2 years ago
feat(derive): Reserve the T group name

Since the `name` is changed to be the package name, we can't use it as
(1) its not as predictabl...

d3bf5450ff2101d36b8b64dcfa5ab69bff321535 authored over 2 years ago
feat(derive): Reserve 'group_id' trait method

01c0975678206a8b8fbd50b13f513c36f48efa6d authored over 2 years ago
feat(derive): Reserve 'group' attribute

3bfa9d5ff03dd92cb5a5014be8880c2f09f34f09 authored over 2 years ago
Merge pull request #4208 from epage/columns

fix(help): Respect LINES and COLUMNS

79321f25e42a2fa17dc0fd77527a9971b1ab3a82 authored over 2 years ago
fix(help): Respect LINES and COLUMNS

Fixes #4186

0eb95022a54246ceb8bd9a9e2fcdb34fe4a995c8 authored over 2 years ago
refactor(help): Allow looking up dimensions independently

07604982006cb4ad802ebc5e607e7bc2c8726fc3 authored over 2 years ago
Merge pull request #4207 from epage/arg

fix: Make `arg!(--flag <value>)` optional by default

1466cd5f55c47d14121b5a125e18071e7221b30a authored over 2 years ago
fix: Make `arg!(--flag <value>)` optional by default

This was ported over from the usage parser which modeled after docopt.
We just never got around ...

c9eef442134de634e988436cd59da41519dc5285 authored over 2 years ago
docs: Feature moved to v3

75a73f3fe01b61382d00bceae1aea6fe776439b3 authored over 2 years ago
docs: Add more highlights

a86e55ad3ed53d69c874e04f92d19092298f764f authored over 2 years ago
docs: Help people through Action changes

fadcaf9860ab822b00ec039b226c1ca31bcbe7da authored over 2 years ago
docs: Clarify intent of upgrade link

6f185a870410b9d6cd0902a40b03d4e46ad0d3ac authored over 2 years ago
Merge pull request #4197 from epage/dynamic

fix: Tests/clippy/errors bash dynamic completion

bf98110adc1bfc90b044ac7faf6acd784f17f7df authored over 2 years ago
fix: Tests/clippy/errors bash dynamic completion

a2cf7f1dea40fdfe50edf0b088ffd03bbea92c11 authored over 2 years ago
Merge pull request #4193 from epage/stable

revert(derive): Bald action/value_parser are deprecated, its good enough

4e703d1e2e3c68e59b8e3919fe316af48a415e2b authored over 2 years ago
Merge pull request #4196 from epage/link

docs(parser): Clarify needs for negative numbers

430a384984ac753c5e3ce20a35fefd69258c2a41 authored over 2 years ago
Merge pull request #4194 from epage/assert

perf(assert): Don't make release pay the cost

81c3925bb8cd976280de3d550ea4ce4583ee6509 authored over 2 years ago
docs(parser): Clarify needs for negative numbers

fa7a1fca589f6487a7ef0b8e550a701232bafdc9 authored over 2 years ago
perf(assert): Don't make release pay the cost

afeed4043cc4dae818ab5df104fc24ffa36ab21f authored over 2 years ago
revert(derive): Bald action/value_parser are deprecated, its good enough

When I removed these in v5, we didn't have a deprecation approach for
the derive and I didn't wa...

17f49df4e20d3ec0ddce46daa7d3d5901eb75a11 authored over 2 years ago
docs: Summarize reason for change

b502ac750bb28960fcaab1505382385ea0831ae3 authored over 2 years ago
docs: Specify that we will support prior major versions

This came up in a [reddit
discussion](https://www.reddit.com/r/rust/comments/vbep9q/clap_32_last...

a9333b707496e86b2c7830c6cc26ad507126d9fc authored over 2 years ago
docs(derive): Collect tips at end

985a1b9b4a992fb3f0152876a6f89b09ad3c33cc authored over 2 years ago
Merge pull request #4192 from epage/tab

fix(help): Make output more dense

c95c9f2fac6a1eaa7e000027e482bc3d9878ad70 authored over 2 years ago
fix(help): Make output more dense

In looking at other help output, I noticed that they use two spaces, in
place of clap's 4, and i...

c90a4eabaea88500777b04c40ba314ae28c3040f authored over 2 years ago
fix(help): Clarify what is tab dependent and what isn't

ed6475e9deab0ccf7e228cc97b89fa21802337e9 authored over 2 years ago
fix(help): I think this fixes a bug?

The existing behavior is hard to explain, so this is the best I've
figured is going on.

56fe50eab8a20d79af22db42a2f8a979d3df44cf authored over 2 years ago
fix(help): Make next-line help less sensitive to tab changes

876da97d1ccebf84b15a25df7a9e895bdf6a2fdd authored over 2 years ago
fix(help): Long-only indentation is independent of TAB

d3fc37b6787de5bcf5131a0bbb55c578a4f5cfa2 authored over 2 years ago
Merge pull request #4190 from epage/nxt

fix(help):Be dense on short next line help

65c289784bf958dbbc94a202c167f13834b4b29a authored over 2 years ago
fix(help):Be dense on short next line help

If short help is too long for the terminal, clap will automatically
switch to next line help. A...

bbb6c38bad671d3818d37f17526b965d8358ceaa authored over 2 years ago
docs: Fix code fence

69dd14576767aa0fafb7cac5f9d71f99225b8c42 authored over 2 years ago
docs: Add another highlighted difference

b7b12ea558860d4e9cf302afcca670dd1af6f0fb authored over 2 years ago
docs: Write v4 migration

55e229717447fe59f451e201cbe50360f718ead2 authored over 2 years ago
Merge pull request #4189 from epage/last

docs: Show how last can be used

4cb42c640d28c541ef1c04dd4b5f4d8ca5cc26b8 authored over 2 years ago
docs: Show how last can be used

We can't quite get git's behavior because it has `last` as both before
and after `--`

61f8a9375a4630c62590a7633393f97ca00a18bb authored over 2 years ago
Merge pull request #4188 from epage/usage

fix(help): Collapse usage to one line

a228df39b84a2ba2c00e669dd34baaaa16fab53f authored over 2 years ago
fix(help): Collapse usage to one line

After looking at more examples, I've become more attached to this
briefer format.

Part of #4132

9a645d2d19101c1235159d0b59c7a93a80c973a1 authored over 2 years ago
Merge pull request #4187 from epage/exp

fix(parser): Resolve problems around `allow_hyphen_values`

f97670aca8c14ae2a1515605ba03bdbb9d4ccda8 authored over 2 years ago
fix: Deprecate `Command::allow_negative_numbers`

Better to set on individual args

1258f3e5f6d65683947c0dbca5e6b50dd0e73982 authored over 2 years ago
feat: Allow specifying negative nums on Arg, like hyphens

8ad29ef3376361d73e456336aa3538d61145980d authored over 2 years ago
perf: Shrink the code

16d5a2a19afb47c790f4bd8cbeee94a42164021d authored over 2 years ago
docs: Cross-link allow_hyphe_values with trailing_var_arg

2ebe5ae7951800d9253a2f1629025b55e0e6be5a authored over 2 years ago
fix(derive): Deprecate Command::allow_hyphen_values

Fixes #3450

d45e4be14bc77562deac740e7a287f26fd2204ac authored over 2 years ago
refactor(parser): Highlight short/long parallels

94a5e7fa1ab3faa5876c28bc49a46160f976df86 authored over 2 years ago
fix(derive): Make Command::allow_hyphen_values forward to Arg

7a2bbca62bf245970866d3de76293de435dc8dbe authored over 2 years ago
fix(parser): Arg::allow_hyphen_values correctly handles long args in first pos

This makes it match up with `Command::allow_hyphen_values` which was the
guiding factor for what...

fd9a5a1d502523d0bb61b4f19e135e5403c057e0 authored over 2 years ago
fix: Deprecate Command::trailing_var_arg

Now that we have it on `Arg`, we don't need it on `Command`

bffce7f57a278d6e9026491c1d47933b987c61f2 authored over 2 years ago
fix(parser): Make Command/Arg behave same for shorts with allow_hyphen_values

bc5c5e4a9f4610b06bec577888f22a5198a94d8e authored over 2 years ago
feat: Allow specifying trailing_var_arg on Arg, like last

This has been a bit out of place being on the command. Now its clearer
what the user intends to...

b07d02ef466933ed25f17aeab5227954d4943a7e authored over 2 years ago
Merge pull request #4185 from epage/setting

refactor: Use parameters over settings

f731ce70e4a4adece56b632e85e48d7c7645831f authored over 2 years ago
refactor: Use parameters over settings

1dd9245fffa6966095e6e69892ff198f1fb2e89a authored over 2 years ago