mirror of
https://github.com/thorsten-gehrig/alexa-remote-control.git
synced 2024-11-22 08:49:02 +01:00
Added --version
This commit is contained in:
parent
bd7b500b26
commit
de6ad4a337
@ -188,13 +188,17 @@ usage()
|
|||||||
echo " -a : list available devices"
|
echo " -a : list available devices"
|
||||||
echo " -m : delete multiroom and/or create new multiroom containing devices"
|
echo " -m : delete multiroom and/or create new multiroom containing devices"
|
||||||
echo " -lastalexa : print device that received the last voice command"
|
echo " -lastalexa : print device that received the last voice command"
|
||||||
echo " -z : print current volume level"
|
echo " -z : print current volume level"
|
||||||
echo " -l : logoff"
|
echo " -l : logoff"
|
||||||
echo " -h : help"
|
echo " -h : help"
|
||||||
}
|
}
|
||||||
|
|
||||||
while [ "$#" -gt 0 ] ; do
|
while [ "$#" -gt 0 ] ; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
--version)
|
||||||
|
echo "v0.15b"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
-d)
|
-d)
|
||||||
if [ "${2#-}" != "${2}" -o -z "$2" ] ; then
|
if [ "${2#-}" != "${2}" -o -z "$2" ] ; then
|
||||||
echo "ERROR: missing argument for ${1}"
|
echo "ERROR: missing argument for ${1}"
|
||||||
|
@ -139,6 +139,10 @@ usage()
|
|||||||
|
|
||||||
while [ "$#" -gt 0 ] ; do
|
while [ "$#" -gt 0 ] ; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
--version)
|
||||||
|
echo "v0.15b"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
-d)
|
-d)
|
||||||
if [ "${2#-}" != "${2}" -o -z "$2" ] ; then
|
if [ "${2#-}" != "${2}" -o -z "$2" ] ; then
|
||||||
echo "ERROR: missing argument for ${1}"
|
echo "ERROR: missing argument for ${1}"
|
||||||
|
Loading…
Reference in New Issue
Block a user