diff --git a/README.md b/README.md index e4afbe2..2ef3201 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Usage: ./mympd [OPTION]... -u, --user drop priviliges to user after socket bind -m, --mpdpass specifies the password to use when connecting to mpd -i, --coverimage filename for coverimage [folder.jpg] - -V, --version get version + -v, --version get version --help this help ``` diff --git a/mympd.1 b/mympd.1 index 80d2911..8851257 100644 --- a/mympd.1 +++ b/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 diff --git a/src/mympd.c b/src/mympd.c index 65a25af..f6a244e 100644 --- a/src/mympd.c +++ b/src/mympd.c @@ -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 \n" - "built " __DATE__ " "__TIME__ "\n", + "Built " __DATE__ " "__TIME__ "\n", MYMPD_VERSION_MAJOR, MYMPD_VERSION_MINOR, MYMPD_VERSION_PATCH); return EXIT_SUCCESS; break;