Add usage message to build.sh

This commit is contained in:
Andrew Miner
2017-06-02 08:14:32 -07:00
parent 0556c73fb4
commit a76a411b8c
2 changed files with 23 additions and 36 deletions
+11 -3
View File
@@ -1,9 +1,17 @@
#!/bin/bash
# Constants ############################################################################################################
read -d  USAGE <<-END
USAGE: $0 <clean|compile|watch|help> (--view)
END
# Helper Functions #####################################################################################################
function cancel {
# TODO(aminer): implement
usage
echo
echo $@
exit 0
}
@@ -20,7 +28,7 @@ function compile-ly {
}
function usage {
# TODO(aminer): implement
echo "$USAGE"
exit 0
}
@@ -55,7 +63,7 @@ function command-watch {
COMMAND="$1"
shift
[[ "$COMMAND" == "" ]] && COMMAND="compile"
[[ "$COMMAND" == "" ]] && COMMAND="help"
PATTERNS=()
VIEW="NO"