summaryrefslogtreecommitdiffstats
path: root/apps/nseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/nseq.c')
-rw-r--r--apps/nseq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/nseq.c b/apps/nseq.c
index fd63bd821b..4bc4f32828 100644
--- a/apps/nseq.c
+++ b/apps/nseq.c
@@ -89,6 +89,7 @@ int nseq_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:
@@ -107,7 +108,8 @@ int nseq_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)