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