Merge pull request #687 from mammothbane/main

xtask: exit after printing help
This commit is contained in:
bunnie 2025-09-25 14:48:01 +08:00 committed by GitHub
commit 4cb93d258d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -709,7 +709,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
Some("generate-locales") => generate_locales()?,
Some("wycheproof-import") => wycheproof_import()?,
Some("dummy-template") => generate_app_menus(&Vec::new()),
_ => print_help(),
task => {
if let Some(task) = task {
eprintln!("error: task {task:?} not recognized");
}
print_help();
std::process::exit(1);
}
}
builder.build()?;