From dac323e8bb2a583ea3d84c87b7d55d9dcc893779 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Thu, 7 Mar 2024 08:30:47 +0100 Subject: [PATCH] libvncserver: make usage display more discoverable --- src/libvncserver/cargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libvncserver/cargs.c b/src/libvncserver/cargs.c index 277438e1c..5f6ba6272 100644 --- a/src/libvncserver/cargs.c +++ b/src/libvncserver/cargs.c @@ -85,7 +85,7 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[]) if(!argc) return TRUE; for (i = i1 = 1; i < *argc;) { - if (strcmp(argv[i], "-help") == 0) { + if (strcmp(argv[i], "-help") == 0 || strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) { rfbUsage(); return FALSE; } else if (strcmp(argv[i], "-rfbport") == 0) { /* -rfbport port */