Skip to content

Commit

Permalink
Merge pull request #84 from philrandom/patch-1
Browse files Browse the repository at this point in the history
print help message when bad usage
  • Loading branch information
Yeraze committed May 14, 2020
2 parents d71baea + 6334957 commit ecc9d87
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 ecc9d87

Please sign in to comment.