mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-14 00:10:10 -04:00
Add license and copyright statement to -v/--version and usage message
This commit is contained in:
parent
11909725e2
commit
aa52f1d30b
14
src/main.c
14
src/main.c
@ -60,11 +60,21 @@
|
|||||||
struct event_base *evbase_main;
|
struct event_base *evbase_main;
|
||||||
static int main_exit;
|
static int main_exit;
|
||||||
|
|
||||||
|
static void
|
||||||
|
version(void)
|
||||||
|
{
|
||||||
|
fprintf(stdout, "Forked Media Server: Version %s\n", VERSION);
|
||||||
|
fprintf(stdout, "Copyright (C) 2009 Julien BLACHE <jb@jblache.org>\n");
|
||||||
|
fprintf(stdout, "Based on mt-daapd, Copyright (C) 2003-2007 Ron Pedde <ron@pedde.com>\n");
|
||||||
|
fprintf(stdout, "Released under the GNU General Public License version 2 or later\n");
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage(char *program)
|
usage(char *program)
|
||||||
{
|
{
|
||||||
printf("Usage: %s [options]\n\n",program);
|
version();
|
||||||
|
printf("\n");
|
||||||
|
printf("Usage: %s [options]\n\n", program);
|
||||||
printf("Options:\n");
|
printf("Options:\n");
|
||||||
printf(" -d <number> Log level (0-5)\n");
|
printf(" -d <number> Log level (0-5)\n");
|
||||||
printf(" -D <dom,dom..> Log domains\n");
|
printf(" -D <dom,dom..> Log domains\n");
|
||||||
@ -407,7 +417,7 @@ main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'v':
|
case 'v':
|
||||||
fprintf(stdout, "Forked Media Server: Version %s\n",VERSION);
|
version();
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user