Skip to content

Commit

Permalink
print help message when bad usage
Browse files Browse the repository at this point in the history
  • Loading branch information
philrandom committed May 14, 2020
1 parent d71baea commit 6334957
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ytnef/main.c
Expand Up @@ -108,6 +108,7 @@ int main(int argc, char **argv) {
break;
default:
printf("Unknown option '%s'\n", argv[i]);
PrintHelp();
}
continue;

Expand All @@ -127,6 +128,7 @@ int main(int argc, char **argv) {
break;
default:
printf("Unknown option '%s'\n", argv[i]);
PrintHelp();
}
continue;

Expand Down

0 comments on commit 6334957

Please sign in to comment.