aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/options.c b/options.c
index db6724c8..31150162 100644
--- a/options.c
+++ b/options.c
@@ -603,7 +603,11 @@ struct query *ctl; /* option record to be initialized */
P(_(" --lmtp use LMTP (RFC2033) for delivery\n"));
P(_(" -r, --folder specify remote folder name\n"));
#undef P
- return(-1);
+
+ if (helpflag)
+ exit(PS_SUCCESS);
+ else
+ exit(PS_SYNTAX);
}
return(optind);