added usage text
This commit is contained in:
parent
b2df304ba8
commit
f9e4b61072
@ -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() {
|
VerboseOutput() {
|
||||||
if [[ $verbose ]]; then
|
if [[ $verbose ]]; then
|
||||||
@ -79,3 +91,6 @@ VerboseOutput() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GetOptions $@
|
GetOptions $@
|
||||||
|
if [[ $help ]]; then
|
||||||
|
Usage
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user