From f97035797ef53e08228d51e0dea3a0bd94712e56 Mon Sep 17 00:00:00 2001 From: "resver@gmail.com" Date: Thu, 28 Mar 2013 16:51:12 +0000 Subject: [PATCH] Use -V instead of -v option to print version for consistency with other utilities. git-svn-id: http://exfat.googlecode.com/svn/trunk@348 60bc1c72-a15a-11de-b98f-4500b42dc123 --- dump/dumpexfat.8 | 4 ++-- dump/main.c | 4 ++-- fsck/exfatfsck.8 | 4 ++-- fsck/main.c | 4 ++-- fuse/main.c | 4 ++-- fuse/mount.exfat-fuse.8 | 4 ++-- label/exfatlabel.8 | 4 ++-- label/main.c | 4 ++-- mkfs/main.c | 4 ++-- mkfs/mkexfatfs.8 | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dump/dumpexfat.8 b/dump/dumpexfat.8 index 36fb28a..7fea065 100644 --- a/dump/dumpexfat.8 +++ b/dump/dumpexfat.8 @@ -13,7 +13,7 @@ .B \-u ] [ -.B \-v +.B \-V ] .I device @@ -33,7 +33,7 @@ systems. Dump ranges of used sectors starting from 0 and separated with spaces. May be useful for backup tools. .TP -.BI \-v +.BI \-V Print version and copyright. .SH EXIT CODES diff --git a/dump/main.c b/dump/main.c index fa80903..b4fad19 100644 --- a/dump/main.c +++ b/dump/main.c @@ -140,7 +140,7 @@ static int dump_full(const char* spec, bool used_sectors) static void usage(const char* prog) { - fprintf(stderr, "Usage: %s [-s] [-u] [-v] \n", prog); + fprintf(stderr, "Usage: %s [-s] [-u] [-V] \n", prog); exit(1); } @@ -160,7 +160,7 @@ int main(int argc, char* argv[]) sb_only = true; else if (strcmp(*pp, "-u") == 0) used_sectors = true; - else if (strcmp(*pp, "-v") == 0) + else if (strcmp(*pp, "-V") == 0) { puts("Copyright (C) 2011-2013 Andrew Nayenko"); return 0; diff --git a/fsck/exfatfsck.8 b/fsck/exfatfsck.8 index 985500c..40d7c85 100644 --- a/fsck/exfatfsck.8 +++ b/fsck/exfatfsck.8 @@ -7,7 +7,7 @@ .SH SYNOPSIS .B exfatfsck [ -.B \-v +.B \-V ] .I device @@ -19,7 +19,7 @@ FS, it just reports found errors. .SH COMMAND LINE OPTIONS Command line options available: .TP -.BI \-v +.BI \-V Print version and copyright. .SH EXIT CODES diff --git a/fsck/main.c b/fsck/main.c index 9eefd74..8e305d3 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -124,7 +124,7 @@ static void fsck(struct exfat* ef) static void usage(const char* prog) { - fprintf(stderr, "Usage: %s [-v] \n", prog); + fprintf(stderr, "Usage: %s [-V] \n", prog); exit(1); } @@ -139,7 +139,7 @@ int main(int argc, char* argv[]) for (pp = argv + 1; *pp; pp++) { - if (strcmp(*pp, "-v") == 0) + if (strcmp(*pp, "-V") == 0) { puts("Copyright (C) 2011-2013 Andrew Nayenko"); return 0; diff --git a/fuse/main.c b/fuse/main.c index 99b4ae0..9b59c54 100644 --- a/fuse/main.c +++ b/fuse/main.c @@ -292,7 +292,7 @@ static void fuse_exfat_destroy(void* unused) static void usage(const char* prog) { - fprintf(stderr, "Usage: %s [-d] [-o options] [-v] \n", prog); + fprintf(stderr, "Usage: %s [-d] [-o options] [-V] \n", prog); exit(1); } @@ -423,7 +423,7 @@ int main(int argc, char* argv[]) } else if (strcmp(*pp, "-d") == 0) debug = 1; - else if (strcmp(*pp, "-v") == 0) + else if (strcmp(*pp, "-V") == 0) { free(mount_options); puts("Copyright (C) 2010-2013 Andrew Nayenko"); diff --git a/fuse/mount.exfat-fuse.8 b/fuse/mount.exfat-fuse.8 index aeec5d8..0c276de 100644 --- a/fuse/mount.exfat-fuse.8 +++ b/fuse/mount.exfat-fuse.8 @@ -16,7 +16,7 @@ mount.exfat-fuse \- mount an exFAT file system .I options ] [ -.B \-v +.B \-V ] .I device dir @@ -41,7 +41,7 @@ File system specific options. For more details see .B FILE SYSTEM OPTIONS section below. .TP -.BI \-v +.BI \-V Print version and copyright. .SH FILE SYSTEM OPTIONS diff --git a/label/exfatlabel.8 b/label/exfatlabel.8 index 429f3cc..dd2ef1c 100644 --- a/label/exfatlabel.8 +++ b/label/exfatlabel.8 @@ -7,7 +7,7 @@ .SH SYNOPSIS .B exfatlabel [ -.B \-v +.B \-V ] .I device [ @@ -35,7 +35,7 @@ just prints current volume name. .SH COMMAND LINE OPTIONS Command line options available: .TP -.BI \-v +.BI \-V Print version and copyright. .SH EXIT CODES diff --git a/label/main.c b/label/main.c index 8a429d5..5595035 100644 --- a/label/main.c +++ b/label/main.c @@ -29,7 +29,7 @@ int main(int argc, char* argv[]) int rc = 0; for (pp = argv + 1; *pp; pp++) - if (strcmp(*pp, "-v") == 0) + if (strcmp(*pp, "-V") == 0) { printf("exfatlabel %u.%u.%u\n", EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH); @@ -39,7 +39,7 @@ int main(int argc, char* argv[]) if (argc != 2 && argc != 3) { - fprintf(stderr, "Usage: %s [-v] [label]\n", argv[0]); + fprintf(stderr, "Usage: %s [-V] [label]\n", argv[0]); return 1; } diff --git a/mkfs/main.c b/mkfs/main.c index 89dc3d0..247cc49 100644 --- a/mkfs/main.c +++ b/mkfs/main.c @@ -188,7 +188,7 @@ static void usage(const char* prog) { fprintf(stderr, "Usage: %s [-i volume-id] [-n label] " "[-p partition-first-sector] " - "[-s sectors-per-cluster] [-v] \n", prog); + "[-s sectors-per-cluster] [-V] \n", prog); exit(1); } @@ -240,7 +240,7 @@ int main(int argc, char* argv[]) usage(argv[0]); first_sector = strtoll(*pp, NULL, 10); } - else if (strcmp(*pp, "-v") == 0) + else if (strcmp(*pp, "-V") == 0) { puts("Copyright (C) 2011-2013 Andrew Nayenko"); return 0; diff --git a/mkfs/mkexfatfs.8 b/mkfs/mkexfatfs.8 index 7d3ffec..5f6ba3d 100644 --- a/mkfs/mkexfatfs.8 +++ b/mkfs/mkexfatfs.8 @@ -23,7 +23,7 @@ .I sectors-per-cluster ] [ -.B \-v +.B \-V ] .I device @@ -55,7 +55,7 @@ exceed 32 MB. Default cluster sizes are: 32 KB if volume size is from 256 MB to 32 GB, 128 KB if volume size is 32 GB or larger. .TP -.BI \-v +.BI \-V Print version and copyright. .SH EXIT CODES -- 2.11.0