util/nvmutil: err sooner, on bad command

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-09 04:04:12 +00:00
parent 1a60eabcfe
commit 14c2588772
+1 -2
View File
@@ -481,8 +481,7 @@ set_cmd(int argc, char *argv[])
else if (argc >= command[cmd_index].argc)
return;
fprintf(stderr, "Too few args on command '%s'", cmd_str);
break;
err(EINVAL, "Too few args on command '%s'", cmd_str);
}
cmd_index = CMD_NULL;