aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-07 07:49:00 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-07 07:49:00 +0000
commit50cd1e6ad5e0611a547e38fb706225e73becc9be (patch)
treea7768d52755e068eaa3f222a291629de369fac9e /options.c
parentba073b126fb869a70332a2c327b1a962d108bf1a (diff)
downloadfetchmail-50cd1e6ad5e0611a547e38fb706225e73becc9be.tar.gz
fetchmail-50cd1e6ad5e0611a547e38fb706225e73becc9be.tar.bz2
fetchmail-50cd1e6ad5e0611a547e38fb706225e73becc9be.zip
Arrange for OK exit after helpflag.
svn path=/trunk/; revision=2337
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);