Stricter check for arguments

This commit is contained in:
Pierre Pronchery 2012-12-23 04:50:29 +01:00
parent e9f06fb249
commit 15327f257b

View File

@ -71,5 +71,7 @@ int main(int argc, char * argv[])
default:
return _usage();
}
if(optind != argc)
return _usage();
return (_camera(device) == 0) ? 0 : 2;
}