File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const ADVICE: &str = "
1919#[ derive( clap:: Args ) ]
2020pub ( crate ) struct Use {
2121 #[ allow( dead_code) ]
22- anything : Vec < String > , // Prevent StructOpt argument errors when invoking e.g. `volta use node`
22+ anything : Vec < String > , // Prevent Clap argument errors when invoking e.g. `volta use node`
2323}
2424
2525impl Command for Use {
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ pub fn main() {
1818 ( false , false ) => LogVerbosity :: Default ,
1919 ( true , false ) => LogVerbosity :: Verbose ,
2020 ( false , true ) => LogVerbosity :: Quiet ,
21- ( true , true ) => unreachable ! (
22- "StructOpt should prevent the user from providing both --verbose and --quiet"
23- ) ,
21+ ( true , true ) => {
22+ unreachable ! ( "Clap should prevent the user from providing both --verbose and --quiet")
23+ }
2424 } ;
2525 Logger :: init ( LogContext :: Volta , verbosity) . expect ( "Only a single logger should be initialized" ) ;
2626
You can’t perform that action at this time.
0 commit comments