handle the no-arg case correctly

This commit is contained in:
bunnie 2026-01-16 17:40:17 +08:00
parent b2c464be0f
commit 5a73d17a0a

View file

@ -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();