Commit da1fc362 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf error on invalid usage

If a user of the script happens to pass an invalid option to
"" we should not ignore it, instead it is more appropriate
to add a diagnostic saying that the user has supplied an invalid

As such, these changes adds a fallback entry to the argument parsing
so that the script aborts to save user from unexpected behavior.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 3dfa34c4
......@@ -43,6 +43,11 @@ while [ $# -gt 0 ]; do
echo "$0: Invalid option '$1'." 1>&2
echo "$0: Try --help for more information." 1>&2
exit 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment