mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
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:
committed by
Johannes Altmanninger
parent
3cce1f3f4c
commit
434610494f
@@ -155,7 +155,7 @@ fn check_for_mutually_exclusive_flags(
|
|||||||
flag1,
|
flag1,
|
||||||
flag2
|
flag2
|
||||||
));
|
));
|
||||||
return Err(STATUS_CMD_ERROR);
|
return Err(STATUS_INVALID_ARGS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user