add help to add-user

This commit is contained in:
Trevor Batley 2023-11-05 09:40:25 +11:00
parent 2d07bc27fc
commit 4619369659

View File

@ -4,15 +4,17 @@ set -e
DEBUG= DEBUG=
SILENT="-s" SILENT="-s"
QUIET="-q" QUIET="-q"
for param in $1 $2 $3 ; do for param in "$@" ; do
if [ $param ] ; then if [ $param ] ; then
case $param in case $param in
debug ) debug )
DEBUG="debug" ;; DEBUG="debug" ;;
permission=* ) permission=* )
NEW_PERMS=${param#*=} ;; NEW_PERMS=${param#*=} ;;
* ) help | -h | --help )
NEW_USER=$param ;; echo "koji-add-user.sh <user> [permission=<permission> | debug]" ;;
* )
NEW_USER=$param ;;
esac esac
else else
break break