diff options
Diffstat (limited to 'apps/pkeyparam.c')
-rw-r--r-- | apps/pkeyparam.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pkeyparam.c b/apps/pkeyparam.c index abb40d1ab2..d55adef1ca 100644 --- a/apps/pkeyparam.c +++ b/apps/pkeyparam.c @@ -92,6 +92,7 @@ int pkeyparam_main(int argc, char **argv) switch (o) { case OPT_EOF: case OPT_ERR: + opthelp: BIO_printf(bio_err, "%s: Use -help for summary.\n", prog); goto end; case OPT_HELP: @@ -116,7 +117,8 @@ int pkeyparam_main(int argc, char **argv) } } argc = opt_num_rest(); - argv = opt_rest(); + if (argc != 0) + goto opthelp; in = bio_open_default(infile, 'r', FORMAT_PEM); if (in == NULL) |