diff options
Diffstat (limited to 'contrib/groff/src/xditview/xditview.c')
-rw-r--r-- | contrib/groff/src/xditview/xditview.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/groff/src/xditview/xditview.c b/contrib/groff/src/xditview/xditview.c index e836cf5..75b7fd1 100644 --- a/contrib/groff/src/xditview/xditview.c +++ b/contrib/groff/src/xditview/xditview.c @@ -179,7 +179,9 @@ int main(argc, argv) toplevel = XtAppInitialize(&xtcontext, "GXditview", options, XtNumber (options), &argc, argv, fallback_resources, NULL, 0); - if (argc > 2) + if (argc > 2 + || (argc == 2 && (!strcmp(argv[1], "-help") + || !strcmp(argv[1], "--help")))) Syntax(argv[0]); XtGetApplicationResources(toplevel, (XtPointer)&app_resources, |