blkid: also accept -V for displaying version information
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
This commit is contained in:
parent
bc88ad1a5f
commit
a9b2c52f77
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue