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

Commit

Permalink
Print usage when called with no arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
thenickdude committed Jan 11, 2015
1 parent f01df49 commit e106900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blackbox_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ int main(int argc, char **argv)

parseCommandlineOptions(argc, argv);

if (options.help) {
if (options.help || argc == 1) {
printUsage(argv[0]);
return -1;
}
Expand Down

0 comments on commit e106900

Please sign in to comment.