From de6ad4a3370d9ac51158c21d26c4f63a74c190a0 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 20 Jan 2020 20:28:05 +0100 Subject: [PATCH] Added --version --- alexa_remote_control.sh | 6 +++++- alexa_remote_control_plain.sh | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index 45a1a87..abf82a6 100755 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -188,13 +188,17 @@ usage() echo " -a : list available devices" echo " -m : delete multiroom and/or create new multiroom containing devices" 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 " -h : help" } while [ "$#" -gt 0 ] ; do case "$1" in + --version) + echo "v0.15b" + exit 0 + ;; -d) if [ "${2#-}" != "${2}" -o -z "$2" ] ; then echo "ERROR: missing argument for ${1}" diff --git a/alexa_remote_control_plain.sh b/alexa_remote_control_plain.sh index d3a08b7..5a3b52c 100755 --- a/alexa_remote_control_plain.sh +++ b/alexa_remote_control_plain.sh @@ -139,6 +139,10 @@ usage() while [ "$#" -gt 0 ] ; do case "$1" in + --version) + echo "v0.15b" + exit 0 + ;; -d) if [ "${2#-}" != "${2}" -o -z "$2" ] ; then echo "ERROR: missing argument for ${1}"