1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-09-28 14:18:40 +00:00

Fixed version option

This commit is contained in:
jcorporation 2018-05-29 23:28:11 +02:00
parent 707b8b1068
commit 4802b417aa
3 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ Usage: ./mympd [OPTION]...
-u, --user <username> drop priviliges to user after socket bind
-m, --mpdpass <password> specifies the password to use when connecting to mpd
-i, --coverimage <filename> filename for coverimage [folder.jpg]
-V, --version get version
-v, --version get version
--help this help
```

View File

@ -39,7 +39,7 @@ specifies the password to use when connecting to mpd
\fB-i\fR, \fB\-\-coverimage FILENAME\fR
filename for coverimage [folder.jpg]
.TP
\fB\-V\fR, \fB\-\-version\fR
\fB\-v\fR, \fB\-\-version\fR
print version and exit
.TP
\fB\-\-help\fR

View File

@ -112,7 +112,7 @@ int main(int argc, char **argv)
{0, 0, 0, 0 }
};
while((n = getopt_long(argc, argv, "D:h:p:l:w:u:d:v:m:s:i:",
while((n = getopt_long(argc, argv, "D:h:p:l:w:u:d:vm:s:i:",
long_options, &option_index)) != -1) {
switch (n) {
case 'D':
@ -146,7 +146,7 @@ int main(int argc, char **argv)
case 'v':
fprintf(stdout, "myMPD %d.%d.%d\n"
"Copyright (C) 2018 Juergen Mang <mail@jcgames.de>\n"
"built " __DATE__ " "__TIME__ "\n",
"Built " __DATE__ " "__TIME__ "\n",
MYMPD_VERSION_MAJOR, MYMPD_VERSION_MINOR, MYMPD_VERSION_PATCH);
return EXIT_SUCCESS;
break;