summaryrefslogtreecommitdiffstats
path: root/mdoclint.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoclint.c')
-rw-r--r--mdoclint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdoclint.c b/mdoclint.c
index 1fc3a213..afe40053 100644
--- a/mdoclint.c
+++ b/mdoclint.c
@@ -28,12 +28,14 @@ int
main(int argc, char *argv[])
{
struct mmain *p;
+ int c;
const struct mdoc *mdoc;
p = mmain_alloc();
- if ( ! mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL))
- mmain_exit(p, 1);
+ c = mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL);
+ if (1 != c)
+ mmain_exit(p, -1 == c ? 1 : 0);
if (NULL == (mdoc = mmain_mdoc(p)))
mmain_exit(p, 1);