diff --git a/sync-camera b/sync-camera index 28dd6c8..fb1e172 100755 --- a/sync-camera +++ b/sync-camera @@ -11,6 +11,13 @@ function print_usage() { echo "USAGE: ${0##*/} -d -o [-t ] [-r]" } +if [ $# -eq 0 ] +then + >&2 echo "No arguments specified!" + print_usage + exit 1 +fi + while getopts "d:o:t:rh" opt do case "$opt" in