Skip to content

Commit f23788f

Browse files
committed
uefi: Add missing found_an_option
It's used to print help if no valid option was found Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 1bca999 commit f23788f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • framework_lib/src/commandline

framework_lib/src/commandline/uefi.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ pub fn parse(args: &[String]) -> Cli {
388388
} else {
389389
println!("--rgbkbd requires at least 2 arguments, the start key and an RGB value");
390390
vec![]
391-
}
391+
};
392+
found_an_option = true;
392393
} else if arg == "--ps2-enable" {
393394
cli.ps2_enable = if args.len() > i + 1 {
394395
let enable_arg = &args[i + 1];
@@ -795,6 +796,7 @@ pub fn parse(args: &[String]) -> Cli {
795796
println!("Need to provide a value for --console. Possible values: bios, ec, pd0, pd1, rtm01, rtm23, ac-left, ac-right");
796797
None
797798
};
799+
found_an_option = true;
798800
} else if arg == "--flash-gpu-descriptor" {
799801
cli.flash_gpu_descriptor = if args.len() > i + 2 {
800802
let sn = args[i + 2].to_string();

0 commit comments

Comments
 (0)