sync-camera: require arguments.

This commit is contained in:
Nicolás A. Ortega Froysa 2025-01-16 09:42:50 +01:00
parent e132462e5c
commit 191784d1f2

View File

@ -11,6 +11,13 @@ function print_usage() {
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
do
case "$opt" in