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
26ea3e32d0f864524cb0041e9823c070475736db authored over 2 years ago
This also has the side effect of always using the "smart usage" which is
why the tests changed.
14d910dee1e4221f9bd2017ff156bbd8042a5d44 authored over 2 years ago
3c466c63f7778d9881fd55ec5e4876450103c855 authored over 2 years ago
dacc8ff43a091b676096d070bf75a231428d4b5f authored over 2 years ago
5bbe04ac2a9d5229d2f1561d332ff3a892008537 authored over 2 years ago
fix(help): Ensure consistency in usage
45d56ca9d27f60700622531b5bf72879a286037e authored over 2 years agofix(help): Consistently use `[]` for positionals
567bff707b02ce4009c3638b8115aa7d84b2354b authored over 2 years ago76dd3a18e2e4068bb1a13684639e57dff8050290 authored over 2 years ago
refactor(help): Prep for usage fixes
29238551abe6d2f7298f12902f47ed1e2838e7c6 authored over 2 years agoIn the usaeg we use `[]` but in the arg list we use `<>`.
02db3043e2bfc6658ad7a4a4d69dadd73e813dfd authored over 2 years ago5ef803f01a24725865e2bd5a95ebac0d36b739ba authored over 2 years ago
91332267cfbfd71f013dfb36b89732e29843abb9 authored over 2 years ago
87e2d0c2e0da53c4350fca84a9d40d13ae752212 authored over 2 years ago
2b4541fab25bdb86767c991b385729f4e1f2efd6 authored over 2 years ago
fix: Deprecate _os variants
a666328c1ffbb3c4026947c4a902181c659b21db authored over 2 years agoPR #4096 made them redundant
36460aed08e1964087245fe92d4b176e883387ef authored over 2 years agofix(help): Command::print_help should respect disable_colored_help
d61e61466036ec85d24898a930ae365e07d4c7d8 authored over 2 years ago4eeee9b11035a75a9260df304f046e578c0ea2c5 authored over 2 years ago
GitHub Workflows security hardening
d61292d999e1ea3aa2176661465132452a83598e authored over 2 years ago5a563db76ab5a5c30e169c0101a2385f7ef61f3e authored over 2 years ago
a2f3ee2cfa3767ed6ddd6c8c27ec154ef3f8a890 authored over 2 years ago
fix(help): Do not propagate global args to help
9a9d3a8e603ebfb590d479ad20e3dd0fb2961ce9 authored over 2 years ago
This prevents global args from showing in help completions,
since help completions should only s...
fix(derive): Remove structopt attribute support
1f3df00388756d3411030ee57be7dd68de3caaf3 authored over 2 years agorefactor(derive): Prepare for builder attributes
ba5eec31f56f255c8399130395adab39331750c3 authored over 2 years ago521a012c281d9086475fe503817f11748ea1d705 authored over 2 years ago
c04fe2fa4b563545a70ab5f19d6a94f0a6c12de9 authored over 2 years ago
feat(complete): Add completion for help subcommands
294868f5d828371350e49df496e3e6d88fb84f4e authored over 2 years ago* Copy hide flag
* Revert global args special handling. Another commit will
address the issue o...
f08575e4a3e1ea345feef1ee4ac47e2a7a51aecb authored over 2 years ago
fix(derive): Remove error case for default_value
2f4e42f22702c629d2dae23f55f1b94f42ca27d7 authored over 2 years ago4e6733fbe587b2117f5ff2fec3b9417e35cb8c95 authored over 2 years ago
fix(derive): Remove deprecated arg_enum attribute
c13b824e37748a20acbfcc7339348e9de34cb4d6 authored over 2 years agob4b121d3a41282405cfa581a13b065c10a9de520 authored over 2 years ago
fix(help): Don't dim placeholders
6523666a7369ff67441f90aecdd9d8407526ab57 authored over 2 years agoThis came from feedback: https://rust-lang.zulipchat.com/#narrow/stream/220302-wg-cli/topic/Help...
e02648e66b289ef95053e08792d3feb3e11a8858 authored over 2 years agofix(help): Shift focus to subcommands, when present
7818af3ac8b61aa386df024d5f68f131315c43cf authored over 2 years ago
In surveying various tools and CLI parsers, I noticed they list the
subcommands first. This put...
fix(help): Don't rely on ALL CAPS for headers
aacb5620f1a37ab0c2bd5a4b08a1bc89b8990263 authored over 2 years ago
I see them fulfilling two roles
- A form of bolding
- As a callback to their placeholder in usag...
fix(error): Don't underline indentation
1682649836b149ede63156b82b600284013267b3 authored over 2 years agoFix abort message when deriving non-unit enum variants
b1e3dad190106ac022f45ae8f59c7743e0fd86ba authored over 2 years ago8315ba3dd641c766548f87b72d41ebdb0118e5b0 authored over 2 years ago
Clarify that only unit variants are fully supported, and that
non-unit variants must be skipped.
fix(help): Use a more neutral palette
c2ce1dd6f5ae32f27a0f2fb6a3ac33480c2172f9 authored over 2 years agofeat: Allow stylized usage
a6cb2e65bcbcac662a759992187d549b09c3607f authored over 2 years agoFixes #2963
6079a871a0f453d1f7634be881028a285e44e56c authored over 2 years ago
* Manual subtree copy to ensure correct behavior and settings
* Always set ExpandHelpSubcommandT...
d6d838ebe2153d4848002e9b7d8c6b3da71aab61 authored over 2 years ago
Adds parser flags to toggle whether to run the
expensive clone logic for completions case.
Help...
fdcee9313f2eb640cb9a919a96bef2fa2ba0bba9 authored over 2 years agofeat(help): Open the door for user styling in the future
f2e5b0670a2e7956cf2631b336667103eb973e9d authored over 2 years ago8382675985479dee0494b32d43ceca31df86c9f7 authored over 2 years ago
81f29d29ad1e66a3044a503dc8910d75d48262ef authored over 2 years ago
0c2f20d6602b03569f59f252fd458a77e7afc89d authored over 2 years ago
207bb00453e5b0de8f72d0b3d4bb71b4f0d3ac16 authored over 2 years ago
d652f0348d69f2af9c1f5387e655d326d029edd7 authored over 2 years ago
df7616b82060bf6c08e927b34500e1531c09fddd authored over 2 years ago
0e0c5eb2180c18829cec149c52d79a2317d0ccda authored over 2 years ago
This ended up favoring the help implementation
e00abc69050cb2803940f76511d886e3e02062f8 authored over 2 years agoWhile this doesn't reduce size, it cleans things up to make it easier
8607695ed91b0b7f66b9a065208c0d8d81de08ce authored over 2 years ago64753bbc7df1bee91a9eec82ee6c3e76d327a305 authored over 2 years ago
06c40b636ea8304559108c55745d6cc88f1093c7 authored over 2 years ago
2dd493a295a9be3fc36f03e9e9a20546d47867eb authored over 2 years ago
0a15d9ad0c6b7b78c94059e79fb9287132a9f6db authored over 2 years ago
2d5b3263c5e1446a2855002fd05aee85f29c154f authored over 2 years ago
This adds about 5 KiB to `.text`
764ec6903ba7dff2f57f1779f7beeff7a17dfcc1 authored over 2 years agoc228c8830971aefe6cb2682d187f2bc901300025 authored over 2 years ago
5e1d2d349b140f38cf4eedf98a90dcd147f6aa26 authored over 2 years ago
c2e80beed295df17bdbc1b7772fa562796acdd6a authored over 2 years ago
This dropped us about 1.8 KiB
1bd9365bdf2e2a765d7150386d02912503b9e965 authored over 2 years ago
The immediate benefit is binary size but this also makes us more
flexible on the implementation,...
docs: overriding multi-line usage
2e2b63fa5c18389864577054ea8b47825a424617 authored over 2 years ago
This added about 4 KiB to `.text` which makes sense since we duplicated
logic.
This added about 10 KiB to the `.text` which I cannot explain why
c6155f62d549ac08f6ff6faecd3ec1a9327dbf17 authored over 2 years agoperf(error): Allow custmizing formatting
d219c69c514859c3e1a34536e810337cb3ab0c73 authored over 2 years agoFor now, there isn't much a custom implementation can do.
Going from `Rich` to `Null` drops abo...
ef5f9f956ac1375532f28f679ce91c0560c2bbeb authored over 2 years agod16a531e547f7d2e7a52dfe16e28644467b501c8 authored over 2 years ago
Looks like this dropped 2 KiB
ba5a4bc6d49ca8d3d919270ffd0c861dbcd9f33f authored over 2 years agorefactor(help): Prepare for user-visible styled string
956789c39fbc600c6a2a28cab5c526080f975694 authored over 2 years ago
This is prep for creating a formatter trait to select alternative
implementations for errors.
74f29fc52d5cf24bee6f64f7e4e5e04a69f2a296 authored over 2 years ago
a0b1a0387743eaed1016445407053ad108227ac4 authored over 2 years ago
fix: Show possible values in generated man file
79bdeb266ae652a3087dd86ac5315fad36a7ad2e authored over 2 years ago
Noticed that possible values would not show up for Positional arguments
as well. Decided to add ...
069098cfcb4eee3db0e58b3f1779189d816ceb35 authored over 2 years ago
This makes sure we take into account the setting that possible args
is hidden
This adds feature parity for mangen with the standard help output. Users
will now see the list o...
This is prep for making it public
b0cac0845e22173ecfebcfa1d434ab4fabc0b859 authored over 2 years ago
The performance gains of writing directly to the writer are not worth
the complexity. Output is...
fix: Don't pollute root with str types
d4ec9ca54f80d2b5604f4ae5f73c61bca9f5b43a authored over 2 years ago276c75cc081f1e2cd35eb399d4458258d8775651 authored over 2 years ago
Extend Command::override_usage() doc string to describe how to format
multiple usage lines to be...
c6b8a7bafceb84038827206a4f07fb744af0dc79 authored over 2 years ago
fix: Switch to owned types
a8523a0d0b5c9e646b7d5a953fc938b121f12793 authored over 2 years ago907941a565346fe4158d48485d7b4f7c4ee47bcc authored over 2 years ago
c9d883a8c61357de487c0e08b7ab20d40a01ecef authored over 2 years ago
The binary size and performance difference is enough to make it
configurable.
Code size:
- defa...
049d6794b5edff021c7b5de9803847ef0bd8c294 authored over 2 years ago
Impact
- Binary size: 556.6 KiB to 578.4 KiB to 574.6 KiB
- build time: 9.4581 us
- parse time: ...