From 5a73d17a0a5223aba4224dc54fbbd03a00b2fbfb Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 16 Jan 2026 17:40:17 +0800 Subject: [PATCH] handle the no-arg case correctly --- services/bao-console/src/cmds/test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/services/bao-console/src/cmds/test.rs b/services/bao-console/src/cmds/test.rs index c9fabca38..e39137623 100644 --- a/services/bao-console/src/cmds/test.rs +++ b/services/bao-console/src/cmds/test.rs @@ -30,6 +30,7 @@ impl<'a> ShellCmdApi<'a> for Test { let keystore = keystore::Keystore::new(&_env.xns); if args.len() != 1 { write!(ret, "bootwait [check | enable | disable]").ok(); + return Ok(Some(ret)); } if args[0] == "check" { write!(ret, "bootwait is {:?}", keystore.bootwait(None).unwrap()).ok();