Skip to content

Commit 9786a96

Browse files
committed
chore: update development comment
1 parent 4718607 commit 9786a96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/command/use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const ADVICE: &str = "
1919
#[derive(clap::Args)]
2020
pub(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

2525
impl Command for Use {

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)