trying to code while driving
This commit is contained in:
parent
0a29db20f0
commit
2260f43f59
|
@ -12,7 +12,7 @@ IS_TIMER=false
|
||||||
IS_ALLOWED_DISABLED=false
|
IS_ALLOWED_DISABLED=false
|
||||||
|
|
||||||
# Parse command line arguments
|
# Parse command line arguments
|
||||||
while getopts "u:t" opt; do
|
while getopts "u:t:d" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
u )
|
u )
|
||||||
UNIT_NAME=$OPTARG
|
UNIT_NAME=$OPTARG
|
||||||
|
@ -20,11 +20,11 @@ while getopts "u:t" opt; do
|
||||||
t )
|
t )
|
||||||
IS_TIMER=true
|
IS_TIMER=true
|
||||||
;;
|
;;
|
||||||
t )
|
d )
|
||||||
IS_ALLOWED_DISABLED=true
|
IS_ALLOWED_DISABLED=true
|
||||||
;;
|
;;
|
||||||
\? )
|
\? )
|
||||||
echo "Invalid option: $OPTARG" 1>&2
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
: )
|
: )
|
||||||
|
|
Loading…
Reference in New Issue