added usage text

This commit is contained in:
Jeroen De Meerleer 2018-11-30 10:58:16 +01:00
parent b2df304ba8
commit f9e4b61072

View File

@ -71,6 +71,18 @@ GetOptions() {
}
Usage() {
echo "Usage:"
echo "music-sync -s|--source <source> -d|--dest <destination> <parameters>"
echo ""
echo "Syncronises music from one folder to another."
echo ""
echo "Options:"
echo " -s, --source <source> The source folder of the music"
echo " -d, --dest <destination> 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