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
9b9e57628dcd440650bad91a041d40eb0dc369e3 authored over 2 years ago
The downside is we can't skip allocations with
- `ValueEnum` default values
- Vaid subcommands
...
1bbf07e574b046503a4e3cc3f0bc221c46399fc2 authored over 2 years ago
Impact:
- Binary size: 556.6 KiB to 578.4 KiB 565.3 KiB
- build time: 9.6393 us
- parse time: 12...
Impact:
- Binary size: 556.6 KiB to 578.4 KiB
- build time: 6.4950 us (7% slower)
- parse time: ...
feat(clap_complete_fig): Escape all strings
fefeb7ee6fc1c90f760fb27b4d5daf773973b0ce authored over 2 years agofedda32167cdea3af190ef8faa87d0818d5a2d6b authored over 2 years ago
fix: Ensure partial eq is symetric
c023db3a98d1de3ca7067f92f31ba8109d954b99 authored over 2 years ago6de312f50aa9ad6dab7cbe41026f1c52b917e19c authored over 2 years ago
fix!: Remove lifetime from PossibleValue
d04ecd41f3ca3bb63f234a183fecb36ff353d7fa authored over 2 years agoAnother step towards #1041
This isn't the long term type for `PossibleValue::help`, I just want...
8cc164dafbf080532281cdeb2cdb79fde8caa216 authored over 2 years agofix: Switch to owned OsStr type
99d3bb8f74137393dba3bcb5fbf687eb4aeeeab9 authored over 2 years agofeat(parser): Make customizeing flags easier
e81b1aace76d11e5a82d8f8af14a74061ca60223 authored over 2 years ago
While `TypedValueParser` will generally make it easier to reuse value
parsers, this was particul...
19d436d330af6b8107c84a4e1769ee98c8c7423f authored over 2 years ago
fix: Allow non-bool value_parsers for SetTrue
cf7d78692b6b88df98376d4438034192b0d45c75 authored over 2 years ago
Not sure if we could have originally made this work but it definitely
does now that we use `defa...
With being able to accept owned types now, `clap_derive` no longer needs
`once_cell` to make dyn...
This is a part of #1041
Because `Option<Into<T>>` is ambiguous for `None`, we had to create
`Re...
Fix typo in CHANGELOG.md
554724f917b1d8daedc2ad79ff04a686ffd51531 authored over 2 years ago97b0feffed9f711cb063c47962e00c33b78da663 authored over 2 years ago
fix!: Require/default conditional APIs are more explicit
5950c4b95fcccfa0979148e3020121efc95637b6 authored over 2 years ago
This helps with
- API cleanup by not having ambigious `None`, see #950
- Removes ambiguity with ...
17a07abd9fe723ba13fe5b668af3a314cd1f37dd authored over 2 years ago
30d4ef4b09f14b4425dd09e333d333ca91321738 authored over 2 years ago
docs: fix typo in markdown formatting
a42480198bfc422312a8305800046d8a09e90bb9 authored over 2 years agoea55679de8bdc1e92d8ef6b19c283d0b93524303 authored over 2 years ago
This is prep for holding an owned type
3c2635adb2fcd2434a8561cde84ac22c2cb619f4 authored over 2 years agofix!: Prefer `IntoIterator` over `&[]`
472ede9f10e2d31ddee46af7ab5bc6c2a52f7d79 authored over 2 years ago2061a96619585590cac3059312b9a49834c6c17b authored over 2 years ago
The main breakinge change cases:
- `&[char]`: now requires removing `&`
- All other non-ID `&[_]...
feat(parser): Report what arg ids are present
dcfbee978721fa7a0dc3bb1a6cdc46ed4969d156 authored over 2 years ago9c9cc9fcff1ac8b233597eb1a7d1079d66530352 authored over 2 years ago
For now, we are focusing only on iterating over the argument ids and not
the values.
This provi...
7486a0b4b9fb131f19bb32fb3dddfb5708aa617d authored over 2 years agoc45bd6494184835ca79545e519721a0586eb6c01 authored over 2 years ago
Quality improvements to FAQ docs
495e49e1a70989f4c8904c355f90d6149f673ce2 authored over 2 years agoFix enum example comment
fb9dca0a0ce28b6f8396d9ad008a24b1fc44fcb1 authored over 2 years ago8bf39d927538febda98bc53648a7dab876f075c8 authored over 2 years ago
ec55eb6a20cef0633de7a7eebec4ce7167a77e0d authored over 2 years ago
69e1e431e9d5c13f6dde97799d25fbe1f3be7be8 authored over 2 years ago
fix(parser)!: Store args in a group, rather than values
3c82418c8cc7c03cc7b2aed0aa3f927d1bf336a3 authored over 2 years ago
Now that `Id` is public, we can have `ArgMatches` report them. If we
have to choose one behavio...
004de00771c355f3f74688ab748d7025953c907a authored over 2 years ago
Unfortunately, this added another 6.6 KB
Compared to `HEAD~` on `06_rustup`:
- build: 7.41us ->...
This is a step towards #1041
- `ArgGroup` no longer takes a lifetime
- One less field type needs...
This is a part of #2870 and is prep for #1041
Oddly enough, this dropped the binary size by 200...
f84e38a4ded0a2c67755a93d78d8f8fa2a44994a authored over 2 years ago
Compared to `master` on `06_rustup`:
- build: 5.74us -> 6.21us
- parse: 7.57us -> 7.55us
- parse...
426a7d20f3f1aff074052cc45c205d9e531cff14 authored over 2 years ago
f1b86a6ae44da306deb3fb153bdacf3fd31fd56a authored over 2 years ago
1849d566d2debbf2730c6d9aa4207da2058a3ade authored over 2 years ago
This is prep for merging name/id
ca046aaa0111e44d4d5599770a6df18a460f2fd7 authored over 2 years agoThis is prep for changing out the types
This dropped the size by 0.4 KB
d7735d5cf2f1646fe7c176caffb7a3cd3de12ff9 authored over 2 years agoThis will help avoid issues with new warnings
a5494573af5aa217fb5af36a569bfa31f055eb9f authored over 2 years agostyle: Address clippy
14b70597c060c77b3d15beff53a93ab9c989ae62 authored over 2 years ago43e961d24f7c6d1162d207a33fd498c930b9f5eb authored over 2 years ago
refactor: Move off of HashMap/IndexMap to flat containers
084a6dffeb9c0132be68405bffd2d1647c8e683a authored over 2 years agoe7ced880e22b6b8368e619a7ee6271773c9b938f authored over 2 years ago
This dropped 17KB
Again, performance shouldn't be too bad as the total number of argument
id's ...
This dropped `.text` by 14KB
Anything in debug asserts or help/usage output doesn't matter for
...
chore: Bump MSRV to 1.60.0
b344f1cf18fe919883dd848f293c0c7be8c975d2 authored over 2 years ago1c06735390f2735910d31edb4cad1d4dab5cb2fb authored over 2 years ago
fix: No implicit version/help actions
6bc8dfd32b5e2d7e7ab8d939b960cc15ccd8d665 authored over 2 years ago
While at it, this cleans up all of the features. For some reason, I
couldn't do `dep:clap_deriv...
Documenting the existing behavior is challenging which suggests it can
cause user confusion. So...
fix!: Require explicit help/version disabling
1a08b9184bb1c4639042ad99290c6026ec7542ee authored over 2 years ago
Before we introduced actions, it required specific setups to engage with
claps version and help ...
style: Make clippy happy
0129d99f4c4208e78a770657dc3d628a3bba8f19 authored over 2 years ago64639aa81c5028de67dae9b4a49e466619fab768 authored over 2 years ago
fix(debug): Make it easier to address help issues
c7d9fec2f88d182d37646d99518c98b2dcedbda1 authored over 2 years agoInspired by #4033
ac9f4727e014b89abe084799c9eb79ee9e8dd656 authored over 2 years agodocs: Clarify confusing API points
9006f9a716366f9732fc487bed12d1afd800839d authored over 2 years ago22c82c74046a51372cbe3db1ccad9d3ce3f5e145 authored over 2 years ago
fix(derive): Add "id" attribute
a98bcb4d13f391852fc1b022167cabe6f873145a authored over 2 years ago
Previously the Arg id was set with the "name" attribute. This allows use
of an "id" attribute to...
docs(tutorial): Switch to hand-implemented ValueEnum
6aa4f90609e59035fb72924678c1b6ffbc0c5abb authored over 2 years ago1c3159700d96c18814f8c41c005312462b6aa8ea authored over 2 years ago
2d352cb16f2365ceaebd6e26ea8679b0b8920bc2 authored over 2 years ago
36777e7b6ca0e8224e2f9a1c87d17ef8e9663d10 authored over 2 years ago
78b2b44b950e2d4cec130c2f88b6d28b8201a5f5 authored over 2 years ago
docs: v4-specific improvements
52f039e549999814740aaf7d98983ca29129b4e9 authored over 2 years ago571e3a5e158fc788b75bcf7101ee0de04a604da8 authored over 2 years ago
f3d4c2c971d34c37c0ab4d7b6aebd5e0264a9f2c authored over 2 years ago
Biggest problem identified is that we are incorrectly setting the help
usage in `04_04_custom`
fix!: Make ArgAction::Set the default
179faa6bb249c3b8b80d933241759a6180324cbb authored over 2 years ago69ad5cfd847336f21fd21f8a4857b2aec1750a04 authored over 2 years ago
Because of our changes from v3, we can't rely on `_build` taking care of
this for us.
0105b65e4e41e78b271462f8368f8381785b3538 authored over 2 years ago
This removes the need for `TakesValue` bookkeeping for when we knew we
took values but didn't kn...
8ed35b4d9f436611fed16db3927f2adadfefc4e5 authored over 2 years ago
Naming is hard. I found I was writing new code without the `s` so that
suggests the name was wr...
refactor: We don't need MultipleValues for bookkeeping afterall
58b0529d13c52882b0a9668db17aa92769e40896 authored over 2 years ago
TakesValue helps because it provides a way for a lot of settings to say
a value is needed withou...
fix!: Remove bookkeeping getters from API
fcbcafcd749fca87ce5625cc16194dbb90f5c1aa authored over 2 years ago
multiple_values is now just book keeping for the builder, instead people
should look to actions ...
At this point, it is an implementation detail to help with book keeping
within the builder.
The only time it won't be initialized is before `_build`. This is possible because
of #4027
I ...
52ec1f92e9c2f37074123b13efd287d6eedfa9ea authored over 2 years agofix!: Replace takes_value with number_of_values
91b10554f419318599b53b1c9f18f14a93935ee7 authored over 2 years agoc62d3f0cfd66206fd28b96b0b2f1a73b8272e7ae authored over 2 years ago
29753b67980665102fb7d453e50dd9f6a9098e9c authored over 2 years ago
fix: Always ensure `num_args` is initialized
14c8f333cd77ff57dad7709ca662ef5f4bd3be43 authored over 2 years ago
As we move people off takes_value/multiple_values, this will provide
something to check.
This w...
479ca76491a76b4c94041d30dacfe8d798e3ecc4 authored over 2 years ago