-
Notifications
You must be signed in to change notification settings - Fork 31
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
Migrate to clap 4 #87
Conversation
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.
This is amazing! Thank you for putting the move from main.rs
to cli.rs
in its own commit! It made this much easier to review :)
I have a lot of unimportant nits and one blocking comment about --version
.
Ah, I missed the last two commits - I would prefer to put those in a follow-up PR if possible, the clap migration is already quite large. |
I'll be separating the last two commits for the next PR. 👍 |
I wanted to do it in even smaller pieces, but the migration commit had to do a lot of stuff at the same time. I unindented most of the You'll have 60 fewer modifications to review in that commit 😉. |
c581cf9
to
a1ae53d
Compare
now when running it like `cargo sweep`, the --version is available, which is necessary for when cargo-sweep is ran via cargo, also, --help shows the crate description (from TOML manifest)
a1ae53d
to
a984b42
Compare
by considering that files can be outputted in different order
a984b42
to
3f49346
Compare
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.
Happy to merge this with the last 2 "take criterion as ..." commits dropped :)
c0c7cb7
to
f8bb6f8
Compare
This PR migrates from
clap 2
toclap 4
, and does a littlebit of refactoring on the code that it touches.
Fixes #86.
It also adds
-m
as a short flag for--maxsize
.