From 0ffe9ddfe783025b4b5f1f809f5cb13fbe58e514 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 16 Dec 2023 12:29:35 -0500 Subject: [PATCH] Fixed a couple command line flag things. --- tojam | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tojam b/tojam index 5acd9a4..d560ca0 100755 --- a/tojam +++ b/tojam @@ -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!"