We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf36a4 commit 60df383Copy full SHA for 60df383
collector/src/main.rs
@@ -768,7 +768,7 @@ struct DbOption {
768
769
#[derive(Debug, clap::Args)]
770
struct BenchRustcOption {
771
- // Run the special `rustc` benchmark
+ /// Run the special `rustc` benchmark
772
#[clap(long = "bench-rustc")]
773
bench_rustc: bool,
774
}
@@ -1218,3 +1218,11 @@ pub fn get_commit_or_fake_it(sha: &str) -> anyhow::Result<Commit> {
1218
1219
}))
1220
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