Skip to content

Commit 11295cd

Browse files
Benno Schulenbergkarelzak
authored andcommitted
wipefs: change option -v to -V for --version; add it to man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
1 parent de9501a commit 11295cd

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

misc-utils/wipefs.8

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
wipefs \- wipe a filesystem signature from a device
88
.SH SYNOPSIS
99
.B wipefs
10-
.RB [ \-ahnp ]
10+
.RB [ \-ahnpV ]
1111
.RB [ \-o
1212
.IR offset ]
1313
.I device
@@ -36,8 +36,10 @@ The \fIoffset\fR argument may be followed by binary (2^N) suffixes KiB, MiB,
3636
GiB, TiB, PiB and EiB (the "iB" is optional, e.g. "K" has the same meaning as
3737
"KiB") or decimal (10^N) suffixes KB, MB, GB, PB and EB.
3838
.IP "\fB\-p, \-\-parsable\fP"
39-
Print out in parsable instead of printable format. Encode all potentially unsafe
39+
Print out in parsable instead of printable format. Encode all potentially unsafe
4040
characters of a string to the corresponding hex value prefixed by '\\x'.
41+
.IP "\fB\-V, \-\-version\fP"
42+
Output version information and exit.
4143
.SH AUTHOR
4244
Karel Zak <kzak@redhat.com>.
4345
.SH AVAILABILITY

misc-utils/wipefs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ usage(FILE *out)
309309
" -n, --no-act do everything except the actual write() call\n"
310310
" -o, --offset <num> offset to erase, in bytes\n"
311311
" -p, --parsable print out in parsable instead of printable format\n"
312-
" -v, --version output version information and exit\n"));
312+
" -V, --version output version information and exit\n"));
313313

314314
fprintf(out, _("\nFor more information see wipefs(8).\n"));
315315

@@ -330,15 +330,15 @@ main(int argc, char **argv)
330330
{ "no-act", 0, 0, 'n' },
331331
{ "offset", 1, 0, 'o' },
332332
{ "parsable", 0, 0, 'p' },
333-
{ "version", 0, 0, 'v' },
333+
{ "version", 0, 0, 'V' },
334334
{ NULL, 0, 0, 0 }
335335
};
336336

337337
setlocale(LC_ALL, "");
338338
bindtextdomain(PACKAGE, LOCALEDIR);
339339
textdomain(PACKAGE);
340340

341-
while ((c = getopt_long(argc, argv, "ahno:pv", longopts, NULL)) != -1) {
341+
while ((c = getopt_long(argc, argv, "ahno:pV", longopts, NULL)) != -1) {
342342
switch(c) {
343343
case 'a':
344344
all++;
@@ -356,7 +356,7 @@ main(int argc, char **argv)
356356
case 'p':
357357
mode = WP_MODE_PARSABLE;
358358
break;
359-
case 'v':
359+
case 'V':
360360
printf(_("%s from %s\n"), program_invocation_short_name,
361361
PACKAGE_STRING);
362362
return EXIT_SUCCESS;

0 commit comments

Comments
 (0)