mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-21 17:17:28 +01:00
add help to add-user
This commit is contained in:
parent
2d07bc27fc
commit
4619369659
@ -4,15 +4,17 @@ set -e
|
||||
DEBUG=
|
||||
SILENT="-s"
|
||||
QUIET="-q"
|
||||
for param in $1 $2 $3 ; do
|
||||
for param in "$@" ; do
|
||||
if [ $param ] ; then
|
||||
case $param in
|
||||
debug )
|
||||
DEBUG="debug" ;;
|
||||
permission=* )
|
||||
NEW_PERMS=${param#*=} ;;
|
||||
* )
|
||||
NEW_USER=$param ;;
|
||||
permission=* )
|
||||
NEW_PERMS=${param#*=} ;;
|
||||
help | -h | --help )
|
||||
echo "koji-add-user.sh <user> [permission=<permission> | debug]" ;;
|
||||
* )
|
||||
NEW_USER=$param ;;
|
||||
esac
|
||||
else
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user