Skip to content
Snippets Groups Projects
Commit 7ee3c26c authored by Christian Engwer's avatar Christian Engwer
Browse files

give usable error if an unknown option is given

[[Imported from SVN: r5158]]
parent df9e7770
No related branches found
No related tags found
No related merge requests found
......@@ -461,6 +461,12 @@ while test $# -gt 0; do
done
;;
--debug) true ;;
--*)
usage
echo "ERROR: Unknown option \`$option'" > /dev/stderr
echo > /dev/stderr
exit 1
;;
*)
command=$option
break
......
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