From 5befc8555eed108ccc282e5affb3ac26cdb9299c Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 13 Sep 2017 19:40:22 -0400 Subject: [PATCH] Added a blurb about pressing a letter to get to the next note, because space and enter do not work. Added -h and --help options. --- bashtuner.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bashtuner.sh b/bashtuner.sh index 1727fa8..5d714a7 100755 --- a/bashtuner.sh +++ b/bashtuner.sh @@ -14,11 +14,15 @@ show_help() { echo "Usage: $0 tune_id" echo "Where tune_id is one of" echo "${!tuning[@]}" + echo "To advance to the next note, press any letter, enter and space do not work." exit 0 } [ $# -ne 1 ] && show_help [ -z "${tuning[$1]}" ] && show_help +[ "$1" == "-h" ] && show_help +[ "$1" == "--help" ] && show_help + # Continuously play the notes until a key is press. # Note key can not be enter or space. # This will adjust how long each note plays.