Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit e106900

Browse files
committed
Print usage when called with no arguments
1 parent f01df49 commit e106900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blackbox_decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ int main(int argc, char **argv)
377377

378378
parseCommandlineOptions(argc, argv);
379379

380-
if (options.help) {
380+
if (options.help || argc == 1) {
381381
printUsage(argv[0]);
382382
return -1;
383383
}

0 commit comments

Comments
 (0)