wipefs: change option -v to -V for --version; add it to man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
This commit is contained in:
parent
de9501ab10
commit
11295cd102
|
@ -7,7 +7,7 @@
|
||||||
wipefs \- wipe a filesystem signature from a device
|
wipefs \- wipe a filesystem signature from a device
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B wipefs
|
.B wipefs
|
||||||
.RB [ \-ahnp ]
|
.RB [ \-ahnpV ]
|
||||||
.RB [ \-o
|
.RB [ \-o
|
||||||
.IR offset ]
|
.IR offset ]
|
||||||
.I device
|
.I device
|
||||||
|
@ -36,8 +36,10 @@ The \fIoffset\fR argument may be followed by binary (2^N) suffixes KiB, MiB,
|
||||||
GiB, TiB, PiB and EiB (the "iB" is optional, e.g. "K" has the same meaning as
|
GiB, TiB, PiB and EiB (the "iB" is optional, e.g. "K" has the same meaning as
|
||||||
"KiB") or decimal (10^N) suffixes KB, MB, GB, PB and EB.
|
"KiB") or decimal (10^N) suffixes KB, MB, GB, PB and EB.
|
||||||
.IP "\fB\-p, \-\-parsable\fP"
|
.IP "\fB\-p, \-\-parsable\fP"
|
||||||
Print out in parsable instead of printable format. Encode all potentially unsafe
|
Print out in parsable instead of printable format. Encode all potentially unsafe
|
||||||
characters of a string to the corresponding hex value prefixed by '\\x'.
|
characters of a string to the corresponding hex value prefixed by '\\x'.
|
||||||
|
.IP "\fB\-V, \-\-version\fP"
|
||||||
|
Output version information and exit.
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
Karel Zak <kzak@redhat.com>.
|
Karel Zak <kzak@redhat.com>.
|
||||||
.SH AVAILABILITY
|
.SH AVAILABILITY
|
||||||
|
|
|
@ -309,7 +309,7 @@ usage(FILE *out)
|
||||||
" -n, --no-act do everything except the actual write() call\n"
|
" -n, --no-act do everything except the actual write() call\n"
|
||||||
" -o, --offset <num> offset to erase, in bytes\n"
|
" -o, --offset <num> offset to erase, in bytes\n"
|
||||||
" -p, --parsable print out in parsable instead of printable format\n"
|
" -p, --parsable print out in parsable instead of printable format\n"
|
||||||
" -v, --version output version information and exit\n"));
|
" -V, --version output version information and exit\n"));
|
||||||
|
|
||||||
fprintf(out, _("\nFor more information see wipefs(8).\n"));
|
fprintf(out, _("\nFor more information see wipefs(8).\n"));
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ main(int argc, char **argv)
|
||||||
{ "no-act", 0, 0, 'n' },
|
{ "no-act", 0, 0, 'n' },
|
||||||
{ "offset", 1, 0, 'o' },
|
{ "offset", 1, 0, 'o' },
|
||||||
{ "parsable", 0, 0, 'p' },
|
{ "parsable", 0, 0, 'p' },
|
||||||
{ "version", 0, 0, 'v' },
|
{ "version", 0, 0, 'V' },
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -338,7 +338,7 @@ main(int argc, char **argv)
|
||||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
textdomain(PACKAGE);
|
textdomain(PACKAGE);
|
||||||
|
|
||||||
while ((c = getopt_long(argc, argv, "ahno:pv", longopts, NULL)) != -1) {
|
while ((c = getopt_long(argc, argv, "ahno:pV", longopts, NULL)) != -1) {
|
||||||
switch(c) {
|
switch(c) {
|
||||||
case 'a':
|
case 'a':
|
||||||
all++;
|
all++;
|
||||||
|
@ -356,7 +356,7 @@ main(int argc, char **argv)
|
||||||
case 'p':
|
case 'p':
|
||||||
mode = WP_MODE_PARSABLE;
|
mode = WP_MODE_PARSABLE;
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'V':
|
||||||
printf(_("%s from %s\n"), program_invocation_short_name,
|
printf(_("%s from %s\n"), program_invocation_short_name,
|
||||||
PACKAGE_STRING);
|
PACKAGE_STRING);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue