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

refactor(parser): Consolidate the loops

26ea3e32d0f864524cb0041e9823c070475736db authored over 2 years ago
fix(parser): Show all required errors at once

This also has the side effect of always using the "smart usage" which is
why the tests changed.

0c9b9d7ec8814db7ab2a9a925a9617b4431f2166 authored over 2 years ago
refactor(parser): Prefer explicit for loops

14d910dee1e4221f9bd2017ff156bbd8042a5d44 authored over 2 years ago
refactor(parser): Flatten required_unless logic

3c466c63f7778d9881fd55ec5e4876450103c855 authored over 2 years ago
refactor(parser): Consolidate presence check

dacc8ff43a091b676096d070bf75a231428d4b5f authored over 2 years ago
docs: Update changelog

5bbe04ac2a9d5229d2f1561d332ff3a892008537 authored over 2 years ago
Merge pull request #4145 from epage/optional

fix(help): Ensure consistency in usage

45d56ca9d27f60700622531b5bf72879a286037e authored over 2 years ago
Merge pull request #4144 from epage/collapse-bug

fix(help): Consistently use `[]` for positionals

567bff707b02ce4009c3638b8115aa7d84b2354b authored over 2 years ago
fix(help): Ensure consistency in usage

76dd3a18e2e4068bb1a13684639e57dff8050290 authored over 2 years ago
Merge pull request #4143 from epage/refactor

refactor(help): Prep for usage fixes

29238551abe6d2f7298f12902f47ed1e2838e7c6 authored over 2 years ago
fix(help): Consistently use `[]` for positionals

In the usaeg we use `[]` but in the arg list we use `<>`.

02db3043e2bfc6658ad7a4a4d69dadd73e813dfd authored over 2 years ago
refactor(help): Move close to use

5ef803f01a24725865e2bd5a95ebac0d36b739ba authored over 2 years ago
refactor(help): Positive logic can clarify intent

91332267cfbfd71f013dfb36b89732e29843abb9 authored over 2 years ago
refactor(help): Clarify intent of fn

87e2d0c2e0da53c4350fca84a9d40d13ae752212 authored over 2 years ago
refactor(help): Clean up code

2b4541fab25bdb86767c991b385729f4e1f2efd6 authored over 2 years ago
Merge pull request #4141 from epage/deprecate

fix: Deprecate _os variants

a666328c1ffbb3c4026947c4a902181c659b21db authored over 2 years ago
fix: Deprecate _os variants

PR #4096 made them redundant

36460aed08e1964087245fe92d4b176e883387ef authored over 2 years ago
Merge pull request #4138 from epage/help

fix(help): Command::print_help should respect disable_colored_help

d61e61466036ec85d24898a930ae365e07d4c7d8 authored over 2 years ago
fix(help): Command::print_help should respect disable_colored_help

4eeee9b11035a75a9260df304f046e578c0ea2c5 authored over 2 years ago
Merge pull request #4136 from sashashura/patch-2

GitHub Workflows security hardening

d61292d999e1ea3aa2176661465132452a83598e authored over 2 years ago
chore: Set permissions

5a563db76ab5a5c30e169c0101a2385f7ef61f3e authored over 2 years ago
docs: Update changelog

a2f3ee2cfa3767ed6ddd6c8c27ec154ef3f8a890 authored over 2 years ago
Merge pull request #4131 from talklittle/no-global-args-on-help

fix(help): Do not propagate global args to help

9a9d3a8e603ebfb590d479ad20e3dd0fb2961ce9 authored over 2 years ago
fix(help): Do not propagate global args to help

This prevents global args from showing in help completions,
since help completions should only s...

eec047a6f62b69ff54554ce7bb3522ff3dbf7218 authored over 2 years ago
Merge pull request #4130 from epage/structopt

fix(derive): Remove structopt attribute support

1f3df00388756d3411030ee57be7dd68de3caaf3 authored over 2 years ago
Merge pull request #4129 from epage/derive

refactor(derive): Prepare for builder attributes

ba5eec31f56f255c8399130395adab39331750c3 authored over 2 years ago
fix(derive): Remove structopt attribute support

521a012c281d9086475fe503817f11748ea1d705 authored over 2 years ago
refactor(derive): Allow carrying context with parsed attributes

c04fe2fa4b563545a70ab5f19d6a94f0a6c12de9 authored over 2 years ago
Merge pull request #4115 from talklittle/completion-help-parser-flag

feat(complete): Add completion for help subcommands

294868f5d828371350e49df496e3e6d88fb84f4e authored over 2 years ago
fix(complete): Fix help completion issues

* Copy hide flag

* Revert global args special handling. Another commit will
address the issue o...

0d0be5160692209a0ccd01b31b0bdb5d48b0cd55 authored over 2 years ago
refactor(derive): Simplify verbatim docs tracking

f08575e4a3e1ea345feef1ee4ac47e2a7a51aecb authored over 2 years ago
Merge pull request #4128 from epage/default

fix(derive): Remove error case for default_value

2f4e42f22702c629d2dae23f55f1b94f42ca27d7 authored over 2 years ago
fix(derive): Remove error case for default_value

4e6733fbe587b2117f5ff2fec3b9417e35cb8c95 authored over 2 years ago
Merge pull request #4127 from epage/arg

fix(derive): Remove deprecated arg_enum attribute

c13b824e37748a20acbfcc7339348e9de34cb4d6 authored over 2 years ago
fix(derive): Remove deprecated arg_enum attribute

b4b121d3a41282405cfa581a13b065c10a9de520 authored over 2 years ago
Merge pull request #4126 from epage/dimmed

fix(help): Don't dim placeholders

6523666a7369ff67441f90aecdd9d8407526ab57 authored over 2 years ago
fix(help): Don't dim placeholders

This came from feedback: https://rust-lang.zulipchat.com/#narrow/stream/220302-wg-cli/topic/Help...

e02648e66b289ef95053e08792d3feb3e11a8858 authored over 2 years ago
Merge pull request #4125 from epage/sub

fix(help): Shift focus to subcommands, when present

7818af3ac8b61aa386df024d5f68f131315c43cf authored over 2 years ago
fix(help): Shift focus to subcommands, when present

In surveying various tools and CLI parsers, I noticed they list the
subcommands first. This put...

83d6add9aadfa07b66ef076cc0a5f6498ba6e03d authored over 2 years ago
Merge pull request #4123 from epage/header-help

fix(help): Don't rely on ALL CAPS for headers

aacb5620f1a37ab0c2bd5a4b08a1bc89b8990263 authored over 2 years ago
fix(help): Don't rely on ALL CAPS for headers

I see them fulfilling two roles
- A form of bolding
- As a callback to their placeholder in usag...

9b23a09f7a4236860d83fabe9312a1c81dc2dad8 authored over 2 years ago
Merge pull request #4119 from epage/usage

fix(error): Don't underline indentation

1682649836b149ede63156b82b600284013267b3 authored over 2 years ago
Merge pull request #4118 from miguelff/master

Fix abort message when deriving non-unit enum variants

b1e3dad190106ac022f45ae8f59c7743e0fd86ba authored over 2 years ago
fix(error): Don't underline indentation

8315ba3dd641c766548f87b72d41ebdb0118e5b0 authored over 2 years ago
fix: Amend error message when deriving enums

Clarify that only unit variants are fully supported, and that
non-unit variants must be skipped.

42cb87b4b6d3217014af5982b741bd7c6bfef1d9 authored over 2 years ago
Merge pull request #4117 from epage/styled-help

fix(help): Use a more neutral palette

c2ce1dd6f5ae32f27a0f2fb6a3ac33480c2172f9 authored over 2 years ago
Merge pull request #4116 from epage/usage

feat: Allow stylized usage

a6cb2e65bcbcac662a759992187d549b09c3607f authored over 2 years ago
fix(help): Use a more neutral palette

Fixes #2963

6079a871a0f453d1f7634be881028a285e44e56c authored over 2 years ago
refactor(complete): Clean up help completion

* Manual subtree copy to ensure correct behavior and settings
* Always set ExpandHelpSubcommandT...

729406661c2e4502de009c72a190f95d668f982e authored over 2 years ago
feat: Allow stylized usage

d6d838ebe2153d4848002e9b7d8c6b3da71aab61 authored over 2 years ago
feat(complete): Add completion for help subcommands

Adds parser flags to toggle whether to run the
expensive clone logic for completions case.

Help...

fdcee9313f2eb640cb9a919a96bef2fa2ba0bba9 authored over 2 years ago
Merge pull request #4114 from epage/wrap

feat(help): Open the door for user styling in the future

f2e5b0670a2e7956cf2631b336667103eb973e9d authored over 2 years ago
style: Fix a typo

8382675985479dee0494b32d43ceca31df86c9f7 authored over 2 years ago
refactor(help): Top-down sort functions

81f29d29ad1e66a3044a503dc8910d75d48262ef authored over 2 years ago
refactor(help): Drop the parser macro

0c2f20d6602b03569f59f252fd458a77e7afc89d authored over 2 years ago
refactor(help): Simplify several parts

207bb00453e5b0de8f72d0b3d4bb71b4f0d3ac16 authored over 2 years ago
refactor(help): Reduce a fn's visibility

d652f0348d69f2af9c1f5387e655d326d029edd7 authored over 2 years ago
fix(help): Match v3 usage for optional positionals

df7616b82060bf6c08e927b34500e1531c09fddd authored over 2 years ago
refactor(help): Consolidate value printing

0e0c5eb2180c18829cec149c52d79a2317d0ccda authored over 2 years ago
refactor(help): Consolidate arg suffix rendering

This ended up favoring the help implementation

e00abc69050cb2803940f76511d886e3e02062f8 authored over 2 years ago
refactor(help): Simplify the code

While this doesn't reduce size, it cleans things up to make it easier

8607695ed91b0b7f66b9a065208c0d8d81de08ce authored over 2 years ago
refactor(help): Make spec value implementations more flexible

64753bbc7df1bee91a9eec82ee6c3e76d327a305 authored over 2 years ago
refactor(help): Clarify arg separator

06c40b636ea8304559108c55745d6cc88f1093c7 authored over 2 years ago
perf(help): Reduce code size for arg generation

2dd493a295a9be3fc36f03e9e9a20546d47867eb authored over 2 years ago
refactor(help): Clarify intent

0a15d9ad0c6b7b78c94059e79fb9287132a9f6db authored over 2 years ago
feat: Allow styling of rest of StyledStr help

2d5b3263c5e1446a2855002fd05aee85f29c154f authored over 2 years ago
feat: Allow stylized arg helps

This adds about 5 KiB to `.text`

764ec6903ba7dff2f57f1779f7beeff7a17dfcc1 authored over 2 years ago
perf(help): Prefer small binary to speed

c228c8830971aefe6cb2682d187f2bc901300025 authored over 2 years ago
fix(debug): Reduce noise

5e1d2d349b140f38cf4eedf98a90dcd147f6aa26 authored over 2 years ago
fix(help): Allow stylized help template

c2e80beed295df17bdbc1b7772fa562796acdd6a authored over 2 years ago
perf(help): Reduce binary size

This dropped us about 1.8 KiB

1bd9365bdf2e2a765d7150386d02912503b9e965 authored over 2 years ago
perf: Vendor textwrap parts we need

The immediate benefit is binary size but this also makes us more
flexible on the implementation,...

37f2efb0bdd3c9bef34c29072182601e8f97e81d authored over 2 years ago
Merge pull request #4106 from jpgrayson/doc-override-usage

docs: overriding multi-line usage

2e2b63fa5c18389864577054ea8b47825a424617 authored over 2 years ago
refactor: Extract our own display width

This added about 4 KiB to `.text` which makes sense since we duplicated
logic.

735d6fd1e33dcf68bae7388d60b8d1650f2f1598 authored over 2 years ago
feat: Open the door for user styling in the future

This added about 10 KiB to the `.text` which I cannot explain why

c6155f62d549ac08f6ff6faecd3ec1a9327dbf17 authored over 2 years ago
Merge pull request #4111 from epage/error

perf(error): Allow custmizing formatting

d219c69c514859c3e1a34536e810337cb3ab0c73 authored over 2 years ago
perf(error): Allow custmizing formatting

For now, there isn't much a custom implementation can do.

Going from `Rich` to `Null` drops abo...

ef5f9f956ac1375532f28f679ce91c0560c2bbeb authored over 2 years ago
feat(error): Expose context lookup

d16a531e547f7d2e7a52dfe16e28644467b501c8 authored over 2 years ago
refactor(error): Switch Vec to FlatMap

Looks like this dropped 2 KiB

ba5a4bc6d49ca8d3d919270ffd0c861dbcd9f33f authored over 2 years ago
Merge pull request #4110 from epage/styled

refactor(help): Prepare for user-visible styled string

956789c39fbc600c6a2a28cab5c526080f975694 authored over 2 years ago
refactor(error): Delay colorizing until the end

This is prep for creating a formatter trait to select alternative
implementations for errors.

3672663319d2f5a8880703d7dbfed360036c8180 authored over 2 years ago
refactor: Remove inline(never) that don't change anything

74f29fc52d5cf24bee6f64f7e4e5e04a69f2a296 authored over 2 years ago
docs: Apply review suggestions for #4106

a0b1a0387743eaed1016445407053ad108227ac4 authored over 2 years ago
Merge pull request #4082 from Calder-Ty/bugfix/3861

fix: Show possible values in generated man file

79bdeb266ae652a3087dd86ac5315fad36a7ad2e authored over 2 years ago
fix: Add possible vals to man for positional args

Noticed that possible values would not show up for Positional arguments
as well. Decided to add ...

a55db4375856321a5272dd751d7a8c3d98b6acc8 authored over 2 years ago
fix: Use roff bullet lists for possible_values

069098cfcb4eee3db0e58b3f1779189d816ceb35 authored over 2 years ago
fix: Take in account possible values being hidden

This makes sure we take into account the setting that possible args
is hidden

ec518e4819db4a02f9a86824ddd6845d1b9895c1 authored over 2 years ago
fix: Show possible values in generated man file

This adds feature parity for mangen with the standard help output. Users
will now see the list o...

6342802f5572779a8eb2eb1ef9b533751c6d4415 authored over 2 years ago
refactor(help): Pull out a StyledStr

This is prep for making it public

b0cac0845e22173ecfebcfa1d434ab4fabc0b859 authored over 2 years ago
refactor(help): Simplify writing

The performance gains of writing directly to the writer are not worth
the complexity. Output is...

81d57a0cd4e38c5ad71fc4455e96c7807cdb95ef authored over 2 years ago
Merge pull request #4107 from epage/help

fix: Don't pollute root with str types

d4ec9ca54f80d2b5604f4ae5f73c61bca9f5b43a authored over 2 years ago
fix: Don't pollute root with str types

276c75cc081f1e2cd35eb399d4458258d8775651 authored over 2 years ago
docs: How to override multi-line usage

Extend Command::override_usage() doc string to describe how to format
multiple usage lines to be...

bcd1062fdf1928ecd861e43d6a9f1f8878b5128a authored over 2 years ago
docs: Update changelog

c6b8a7bafceb84038827206a4f07fb744af0dc79 authored over 2 years ago
Merge pull request #4103 from epage/arg

fix: Switch to owned types

a8523a0d0b5c9e646b7d5a953fc938b121f12793 authored over 2 years ago
style: Make clippy happy

907941a565346fe4158d48485d7b4f7c4ee47bcc authored over 2 years ago
refactor: Remove once_cell dependency

c9d883a8c61357de487c0e08b7ab20d40a01ecef authored over 2 years ago
perf: Let users choose Str implementation

The binary size and performance difference is enough to make it
configurable.

Code size:
- defa...

fc499ac0ecba9561bd56ddb1c10b88440f3431a0 authored over 2 years ago
refactor: Isolate str inner

049d6794b5edff021c7b5de9803847ef0bd8c294 authored over 2 years ago
perf: Switch Str to use String

Impact
- Binary size: 556.6 KiB to 578.4 KiB to 574.6 KiB
- build time: 9.4581 us
- parse time: ...

931d0e1bff534c25125b04e103e2f5f653e291c2 authored over 2 years ago