winepath: Remove the --version option.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-04-09 09:34:27 +02:00
parent 3073a17202
commit 2bfba562f9
2 changed files with 1 additions and 8 deletions

View File

@ -56,7 +56,6 @@ static int option(int shortopt, const WCHAR *longopt)
" directory to the short format\n"
" -0 separate output with \\0 character, instead of a newline\n"
" -h, --help output this help message and exit\n"
" -v, --version output version information and exit\n"
"\n"
"If more than one option is given then the input paths are output in\n"
"all formats specified, in the order long, short, Unix, Windows.\n"
@ -67,9 +66,6 @@ static int option(int shortopt, const WCHAR *longopt)
printf("Usage: %s [OPTION] [PATH]...\n", progname);
printf(helpmsg);
exit(0);
case 'v':
printf("%s version " PACKAGE_VERSION "\n", progname);
exit(0);
case 'l':
return LONGFORMAT;
case 's':
@ -101,9 +97,8 @@ static int parse_options(WCHAR *argv[])
static const WCHAR unixW[] = { 'u','n','i','x',0 };
static const WCHAR windowsW[] = { 'w','i','n','d','o','w','s',0 };
static const WCHAR helpW[] = { 'h','e','l','p',0 };
static const WCHAR versionW[] = { 'v','e','r','s','i','o','n',0 };
static const WCHAR nullW[] = { 0 };
static const WCHAR *longopts[] = { longW, shortW, unixW, windowsW, helpW, versionW, nullW };
static const WCHAR *longopts[] = { longW, shortW, unixW, windowsW, helpW, nullW };
int outputformats = 0;
BOOL done = FALSE;
int i, j;

View File

@ -27,8 +27,6 @@ format.
separate output with \\0 character, instead of a newline.
.IP \fB\-h\fR,\fB\ \-\-help
shows winepath help message and exit.
.IP \fB\-v\fR,\fB\ \-\-version
shows version information and exit.
.SH BUGS
Bugs can be reported on the
.UR https://bugs.winehq.org