sync-camera: require arguments.
This commit is contained in:
parent
e132462e5c
commit
191784d1f2
@ -11,6 +11,13 @@ function print_usage() {
|
|||||||
echo "USAGE: ${0##*/} -d <device> -o <dir> [-t <dir>] [-r]"
|
echo "USAGE: ${0##*/} -d <device> -o <dir> [-t <dir>] [-r]"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]
|
||||||
|
then
|
||||||
|
>&2 echo "No arguments specified!"
|
||||||
|
print_usage
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
while getopts "d:o:t:rh" opt
|
while getopts "d:o:t:rh" opt
|
||||||
do
|
do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
|
Loading…
Reference in New Issue
Block a user