Skip to content
Snippets Groups Projects
Commit da1fc362 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf
Browse files

compile.sh: error on invalid usage


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

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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3dfa34c4
No related branches found
No related tags found
Loading
......@@ -43,6 +43,11 @@ while [ $# -gt 0 ]; do
run)
RUN=1
;;
*)
echo "$0: Invalid option '$1'." 1>&2
echo "$0: Try --help for more information." 1>&2
exit 1
;;
esac
shift
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment