]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkid: also accept -V for displaying version information
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 1 Mar 2013 21:18:30 +0000 (22:18 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Mar 2013 13:08:03 +0000 (14:08 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
misc-utils/blkid.8
misc-utils/blkid.c

index 0d5f4235c10500ae768560a4bbd4664b73f127c1..768a499f767475def5430c55a82fca997436ee92 100644 (file)
@@ -253,7 +253,7 @@ This option is only useful together with \fB-p\fR.
 .BI \-U " uuid"
 Look up the device that uses this filesystem \fIuuid\fR.  For more details see the \fB-L\fR option.
 .TP
-.B \-v
+.B \-V
 Display version number and exit.
 .SH "RETURN CODE"
 If the specified token was found, or if any tags were shown from (specified)
index 52e280f76547aef96d761fc82386014861c3b2c5..78e0a9383d04636116db436e7cefa1c118ccb10f 100644 (file)
@@ -88,7 +88,7 @@ static void usage(int error)
                " -l          look up only first device with token specified by -t\n"
                " -L <label>  convert LABEL to device name\n"
                " -U <uuid>   convert UUID to device name\n"
-               " -v          print version and exit\n"
+               " -V          print version and exit\n"
                " <dev>       specify device(s) to probe (default: all devices)\n\n"
                "Low-level probing options:\n"
                " -p          low-level superblocks probing (bypass cache)\n"
@@ -687,7 +687,7 @@ int main(int argc, char **argv)
        atexit(close_stdout);
 
        while ((c = getopt (argc, argv,
-                           "c:df:ghilL:n:ko:O:ps:S:t:u:U:w:v")) != EOF) {
+                           "c:df:ghilL:n:ko:O:ps:S:t:u:U:w:Vv")) != EOF) {
 
                err_exclusive_options(c, NULL, excl, excl_st);
 
@@ -785,6 +785,7 @@ int main(int argc, char **argv)
                                usage(err);
                        }
                        break;
+               case 'V':
                case 'v':
                        version = 1;
                        break;