From f9e4b610724a8c50177d87e94195639b71d0a2b8 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 30 Nov 2018 10:58:16 +0100 Subject: [PATCH] added usage text --- music-sync.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/music-sync.sh b/music-sync.sh index 7450dc8..8e01bfb 100755 --- a/music-sync.sh +++ b/music-sync.sh @@ -71,6 +71,18 @@ GetOptions() { } +Usage() { + echo "Usage:" + echo "music-sync -s|--source -d|--dest " + echo "" + echo "Syncronises music from one folder to another." + echo "" + echo "Options:" + echo " -s, --source The source folder of the music" + echo " -d, --dest The destionation folder of the music" + echo " -v, --verbose Enable verbose output" + echo " -h, --help Display this help text" +} VerboseOutput() { if [[ $verbose ]]; then @@ -79,3 +91,6 @@ VerboseOutput() { } GetOptions $@ +if [[ $help ]]; then + Usage +fi