Commit 5f5307e0 authored by Niels Möller's avatar Niels Möller
Browse files

(main): No extra message for bad options.

Rev: nettle/examples/rsa-encrypt.c:1.3
parent e9ded494
...@@ -163,7 +163,8 @@ main(int argc, char **argv) ...@@ -163,7 +163,8 @@ main(int argc, char **argv)
int c; int c;
const char *random_name = NULL; const char *random_name = NULL;
/* FIXME: --help option. */
while ( (c = getopt(argc, argv, "o:r:")) != -1) while ( (c = getopt(argc, argv, "o:r:")) != -1)
switch (c) switch (c)
{ {
...@@ -172,12 +173,8 @@ main(int argc, char **argv) ...@@ -172,12 +173,8 @@ main(int argc, char **argv)
break; break;
case '?': case '?':
if (isprint (optopt))
werror("Unknown option `-%c'.\n", optopt);
else
werror("Unknown option character `\\x%x'.\n",
optopt);
return EXIT_FAILURE; return EXIT_FAILURE;
default: default:
abort(); abort();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment