Fixed a couple command line flag things.
This commit is contained in:
parent
16922d1b9e
commit
0ffe9ddfe7
8
tojam
8
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!"
|
||||
|
Loading…
Reference in New Issue
Block a user