Fix typo in bungeecord arg parser and handle unknown arguments
This commit is contained in:
parent
f28d63d7d8
commit
9b209b7d4f
@ -23,7 +23,7 @@ function main {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"benugeecord")
|
"bungeecord")
|
||||||
bungeecord=true
|
bungeecord=true
|
||||||
if $velocity || $standalone; then
|
if $velocity || $standalone; then
|
||||||
echo "argument bungeecord can't be used together with velocity or standalone"
|
echo "argument bungeecord can't be used together with velocity or standalone"
|
||||||
@ -43,6 +43,10 @@ function main {
|
|||||||
"--help")
|
"--help")
|
||||||
help=true
|
help=true
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown argument: $arg"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user