Skip to content

Commit 60df383

Browse files
committed
Address review comments.
1 parent daf36a4 commit 60df383

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

collector/src/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ struct DbOption {
768768

769769
#[derive(Debug, clap::Args)]
770770
struct BenchRustcOption {
771-
// Run the special `rustc` benchmark
771+
/// Run the special `rustc` benchmark
772772
#[clap(long = "bench-rustc")]
773773
bench_rustc: bool,
774774
}
@@ -1218,3 +1218,11 @@ pub fn get_commit_or_fake_it(sha: &str) -> anyhow::Result<Commit> {
12181218
}
12191219
}))
12201220
}
1221+
1222+
#[test]
1223+
fn verify_app() {
1224+
// By default, clap lazily checks subcommands. This provides eager testing
1225+
// without having to run the binary for each subcommand.
1226+
use clap::IntoApp;
1227+
Cli::into_app().debug_assert()
1228+
}

0 commit comments

Comments
 (0)