summaryrefslogtreecommitdiff
path: root/bmtoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'bmtoa.c')
-rw-r--r--bmtoa.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bmtoa.c b/bmtoa.c
index 0394038..a9de614 100644
--- a/bmtoa.c
+++ b/bmtoa.c
@@ -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 {