mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Merge pull request #687 from mammothbane/main
xtask: exit after printing help
This commit is contained in:
commit
4cb93d258d
1 changed files with 8 additions and 1 deletions
|
|
@ -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()?;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue