argparse: fix error status code

To homogenize error reporting format, use a new Error struct. Currently this
is used for builtins and ensuring a common cmd/subcmd prefix.

Part of #12556
This commit is contained in:
Nahor
2026-03-15 17:31:00 -07:00
committed by Johannes Altmanninger
parent 3cce1f3f4c
commit 434610494f

View File

@@ -155,7 +155,7 @@ fn check_for_mutually_exclusive_flags(
flag1,
flag2
));
return Err(STATUS_CMD_ERROR);
return Err(STATUS_INVALID_ARGS);
}
}
}