Module: wine Branch: master Commit: 2bfba562f9091a870a3a9e4aefac90a0d8f7f68e URL: https://source.winehq.org/git/wine.git/?a=commit;h=2bfba562f9091a870a3a9e4ae...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Apr 9 09:34:27 2020 +0200
winepath: Remove the --version option.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
programs/winepath/winepath.c | 7 +------ programs/winepath/winepath.man.in | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/programs/winepath/winepath.c b/programs/winepath/winepath.c index 36881d3f26..7f4cd978d5 100644 --- a/programs/winepath/winepath.c +++ b/programs/winepath/winepath.c @@ -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; diff --git a/programs/winepath/winepath.man.in b/programs/winepath/winepath.man.in index 5548e40044..280ed14e59 100644 --- a/programs/winepath/winepath.man.in +++ b/programs/winepath/winepath.man.in @@ -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