From 50cd1e6ad5e0611a547e38fb706225e73becc9be Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 7 Jan 1999 07:49:00 +0000 Subject: Arrange for OK exit after helpflag. svn path=/trunk/; revision=2337 --- options.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3