mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-27 03:10:26 +00:00
Fixed version option
This commit is contained in:
parent
707b8b1068
commit
4802b417aa
@ -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
|
||||
```
|
||||
|
||||
|
2
mympd.1
2
mympd.1
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user