Skip to content

Commit

Permalink
cli: exit gracefully if system is not provided as an argument
Browse files Browse the repository at this point in the history
Signed-off-by: julia <[email protected]>
  • Loading branch information
midnightveil committed Sep 4, 2024
1 parent 64b4a32 commit 527445d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tool/microkit/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3130,6 +3130,9 @@ impl<'a> Args<'a> {
if config.is_none() {
missing_args.push("--config");
}
if system.is_none() {
missing_args.push("system");
}

if !missing_args.is_empty() {
print_usage(available_boards);
Expand Down

0 comments on commit 527445d

Please sign in to comment.