Updated usage.

This commit is contained in:
Daniel Ceregatti 2022-07-23 23:54:20 -07:00
parent e71ed82871
commit 4359cdb163

View file

@ -89,18 +89,18 @@ Usage: ${green}$(basename $0)${yellow} option [ arg1 [ arg2 ] ]
Options and arguments:
activate id [id...] - Activate one or many installed DayZ Workshop items by id
add id [id...] - Add one or many DayZ Workshop items by id. Added items become active by default
config - Update the internal serverDZ.cfg file from files/serverDZ.cfg on the host. Presents a unified diff if the internal file doesn't match the host file.
deactivate id [id...] - Deactivate one or many installed DayZ Workshop items by id - Keeps the addon files but excludes from -mod=
install - Install the DayZ server files
list - List Workshop items and if they are active or not
login - Login to Steam
rcon - Connect to the server using a python RCON client
remove id [id...] - Remove all vestiges of one or many Workshop items by id.
status - Shows the server's status as well as the state of the server files and mods (Needs install, update, etc.)
stop - Stop the server
update - Update the DayZ server and configuration files
workshop - Workshop Features
activate id [id...] - Activate one or many installed DayZ Workshop item by id
add id [id...] - Add one or many DayZ Workshop items by id. Added items are become active by default.
deactivate id [id...] - Deactivate one or many installed DayZ Workshop items by id - Keeps the addon files but excludes from -mod=
list - List Workshop items and their states (Active vs. Non)
remove id [id...] - Remove one or many Workshop items by id
update - Update the server files
${default}"
exit 1
}
@ -109,12 +109,11 @@ fn_prompt_yn(){
echo -n "${1} (y|N) " >&2
read -s -n 1 a
a=$(echo ${a} | tr A-Z a-z)
echo
if [[ "${a}" = "y" ]]
then
echo
return 0
else
echo
return 1
fi
}