mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-28 11:50: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
|
-u, --user <username> drop priviliges to user after socket bind
|
||||||
-m, --mpdpass <password> specifies the password to use when connecting to mpd
|
-m, --mpdpass <password> specifies the password to use when connecting to mpd
|
||||||
-i, --coverimage <filename> filename for coverimage [folder.jpg]
|
-i, --coverimage <filename> filename for coverimage [folder.jpg]
|
||||||
-V, --version get version
|
-v, --version get version
|
||||||
--help this help
|
--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
|
\fB-i\fR, \fB\-\-coverimage FILENAME\fR
|
||||||
filename for coverimage [folder.jpg]
|
filename for coverimage [folder.jpg]
|
||||||
.TP
|
.TP
|
||||||
\fB\-V\fR, \fB\-\-version\fR
|
\fB\-v\fR, \fB\-\-version\fR
|
||||||
print version and exit
|
print version and exit
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-help\fR
|
\fB\-\-help\fR
|
||||||
|
@ -112,7 +112,7 @@ int main(int argc, char **argv)
|
|||||||
{0, 0, 0, 0 }
|
{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) {
|
long_options, &option_index)) != -1) {
|
||||||
switch (n) {
|
switch (n) {
|
||||||
case 'D':
|
case 'D':
|
||||||
@ -146,7 +146,7 @@ int main(int argc, char **argv)
|
|||||||
case 'v':
|
case 'v':
|
||||||
fprintf(stdout, "myMPD %d.%d.%d\n"
|
fprintf(stdout, "myMPD %d.%d.%d\n"
|
||||||
"Copyright (C) 2018 Juergen Mang <mail@jcgames.de>\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);
|
MYMPD_VERSION_MAJOR, MYMPD_VERSION_MINOR, MYMPD_VERSION_PATCH);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user