diff options
Diffstat (limited to 'bmtoa.c')
-rw-r--r-- | bmtoa.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -130,10 +130,16 @@ main (int argc, char *argv[]) filename = NULL; continue; case 'c': - if (++i >= argc) usage (); + if (++i >= argc) { + fprintf(stderr, "%s: -chars requires an argument\n", + ProgramName); + usage (); + } chars = argv[i]; continue; default: + fprintf(stderr, "%s: unrecognized option '%s'\n", + ProgramName, argv[i]); usage (); } } else { |