OSDN Git Service

Allow -v option for compatibility with mount utility.
authorrelan <relan@users.noreply.github.com>
Fri, 29 Mar 2013 06:38:16 +0000 (06:38 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:15 +0000 (08:26 +0300)
mount passes -v to its helpers.

fuse/main.c
fuse/mount.exfat-fuse.8

index 6ce4999..7a58b8e 100644 (file)
@@ -410,7 +410,7 @@ int main(int argc, char* argv[])
                return 1;
        }
 
-       while ((opt = getopt(argc, argv, "dno:V")) != -1)
+       while ((opt = getopt(argc, argv, "dno:Vv")) != -1)
        {
                switch (opt)
                {
@@ -428,6 +428,8 @@ int main(int argc, char* argv[])
                        free(mount_options);
                        puts("Copyright (C) 2010-2013  Andrew Nayenko");
                        return 0;
+               case 'v':
+                       break;
                default:
                        free(mount_options);
                        usage(argv[0]);
index 0c276de..5200c10 100644 (file)
@@ -18,6 +18,9 @@ mount.exfat-fuse \- mount an exFAT file system
 [
 .B \-V
 ]
+[
+.B \-v
+]
 .I device dir
 
 .SH DESCRIPTION
@@ -43,6 +46,9 @@ section below.
 .TP
 .BI \-V
 Print version and copyright.
+.TP
+.BI \-v
+Ignored.
 
 .SH FILE SYSTEM OPTIONS
 .TP