From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:21 +0000 (-0700) Subject: Add -h support to hgfsclient X-Git-Tag: stable-10.2.0~379 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=981cdc84c1903c259b2cf791b5c3903354f9bc5e;p=thirdparty%2Fopen-vm-tools.git Add -h support to hgfsclient --- diff --git a/open-vm-tools/hgfsclient/hgfsclient.c b/open-vm-tools/hgfsclient/hgfsclient.c index a2ee4f978..e30a3f9eb 100644 --- a/open-vm-tools/hgfsclient/hgfsclient.c +++ b/open-vm-tools/hgfsclient/hgfsclient.c @@ -415,6 +415,13 @@ int main(int argc, // IN char *argv[]) // IN { + if (argc == 2 && + (!strncmp(argv[1], "-h", 2) || + !strncmp(argv[1], "--help", 6))) { + fprintf(stderr, "hgfsclient: lists any shared folders.\n"); + return 0; + } + if (!HgfsClient_Init()) { return EXIT_FAILURE; }