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

(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)
int c;
const char *random_name = NULL;
/* FIXME: --help option. */
while ( (c = getopt(argc, argv, "o:r:")) != -1)
switch (c)
{
......@@ -172,12 +173,8 @@ main(int argc, char **argv)
break;
case '?':
if (isprint (optopt))
werror("Unknown option `-%c'.\n", optopt);
else
werror("Unknown option character `\\x%x'.\n",
optopt);
return EXIT_FAILURE;
default:
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