blkid: also accept -V for displaying version information

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
This commit is contained in:
Benno Schulenberg 2013-03-01 22:18:30 +01:00 committed by Karel Zak
parent bc88ad1a5f
commit a9b2c52f77
2 changed files with 4 additions and 3 deletions

View 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)

View 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;