-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
[Merged by Bors] - migrated to clap 3 #1957
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1957 +/- ##
=======================================
Coverage 45.87% 45.87%
=======================================
Files 206 206
Lines 17102 17102
=======================================
Hits 7846 7846
Misses 9256 9256
Continue to review full report at Codecov.
|
i think i need a code review i am confused when to use clap::structopt and clap both seem to do the same thing |
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.
Thank you!! Looking very good!
boa_cli/src/main.rs
Outdated
@@ -64,8 +64,8 @@ use boa_interner::Interner; | |||
use colored::{Color, Colorize}; | |||
use rustyline::{config::Config, error::ReadlineError, EditMode, Editor}; | |||
use std::{fs::read, io, path::PathBuf}; | |||
use structopt::{clap::arg_enum, StructOpt}; | |||
|
|||
//use structopt::{clap::arg_enum, StructOpt}; |
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.
I guess this is no longer needed, right?
@@ -117,6 +117,7 @@ impl Opt { | |||
} | |||
} | |||
|
|||
/* | |||
arg_enum! { |
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.
If this is no longer needed, can it be removed?
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.
Yeah i think it should be removed.
I think |
ok i removed the extra code |
i might try getting rid of some depreciated function as warned by clippy later tommarow |
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 good from my side, but you need to run cargo fmt
to format it and pass the format tests :)
bors r+ |
This Pull Request fixes/closes #1955. It changes the following: - changes structopt to clap
Pull request successfully merged into main. Build succeeded: |
This Pull Request fixes/closes #1955. It changes the following: - changes structopt to clap
This Pull Request fixes/closes #1955.
It changes the following: