diff options
Diffstat (limited to 'keygen.c')
-rw-r--r-- | keygen.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -9,6 +9,7 @@ int main(int argc, char* argv[]) { char* output; int defout = 0; int defbyte = 0; + int noopts = 0; while ((opt = getopt(argc, argv, "b:o:")) != -1) { switch (opt) { case 'b': @@ -23,8 +24,14 @@ int main(int argc, char* argv[]) { fprintf(stderr, "Usage: %s [-b nbytes] [-o output] \n", argv[0]); exit(EXIT_FAILURE); } + if (noopts == 0) { + noopts = 1; + } } + if(noopts == 0) { + printf("WARNING no option specified usign default values... \n"); + } if (nbytes < 0) { printf("Negative byte value inserted! \n"); printf("Exiting... \n"); |