]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Add -h support to hgfsclient
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:21 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:21 +0000 (11:23 -0700)
open-vm-tools/hgfsclient/hgfsclient.c

index a2ee4f978a1a1126a073c824b2c3d93300969b7a..e30a3f9ebb819e35f32799e1a50554c961a35e95 100644 (file)
@@ -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;
    }