-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update deps, including clap to v4 #235
Conversation
c40d354
to
1da6e5a
Compare
|
Yes, I was about to update with a DO NOT MERGE YET, I am spotting issues. |
I fixed a bunch of issues but some probably remain and some testing is required. |
The existing tests do pass though:
|
I still run into issues, so this is not mergeable yet but I will need to jump on other duties. |
src/app/mod.rs
Outdated
.default_value("8") | ||
.value_parser(clap::builder::RangedI64ValueParser::<i32>::new().range(0..=128)) | ||
.help("Sets the count of worker") | ||
.takes_value(true), | ||
.num_args(1..), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a duplicate
src/app/mod.rs
Outdated
@@ -136,7 +124,7 @@ For further information please have a look at our README https://github.com/broc | |||
.help("Filter projects to import by state") | |||
.long("include") | |||
.short('a') | |||
.takes_value(true) | |||
.num_args(1..) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All occurrences of num_args(1..)
including this one should be replaced by num_args(1)
I guess.
I merged this to master but I will not release it yet. I will test this for a while on my machine |
Awesome, I will also install master locally and use it "in prod" then. |
I already had to push a few fixes :( |
It does NOT look too good on my end: |
I rebuilt and indeed, your latest looks much better. |
This PR makes #234 obsolete.
It bumps clap to v4. Clap v3 is now maintenance only.
Noticeable: for now using clap v4 means there is no more colored help. This is however likely to change in the future and there should be ways to reintroduce coloring if wanted.
NOTE: During the conversion from
.takes_value(true)
=>num_args(...)
I used a blanket rangenum_args(1..)
which may be refined in some cases.