Fixed a couple command line flag things.

This commit is contained in:
Storm Dragon 2023-12-16 12:29:35 -05:00
parent 16922d1b9e
commit 0ffe9ddfe7

8
tojam
View File

@ -21,8 +21,9 @@ help() {
# Array of command line arguments
declare -A command=(
[a]="Add a server."
[c]="Configure ${0##*/}."
[D]="Delete a server."
[d]="Delete a server."
[h]="This help screen."
[T]="Dedication."
)
@ -271,8 +272,9 @@ args="${!command[*]}"
args="${args//[[:space:]]/}"
while getopts "${args}" i ; do
case "$i" in
c) echo "Coming soon" ;;
D) delete_server ;;
a) add_server ;;
c) configure_ninjam ;;
d) delete_server ;;
h) help ;;
T)
echo "For Tony, because he's awesome!"