aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.c
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-09-07 20:25:08 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-09-07 20:25:08 +0000
commit420a65325b977440effcfd820b5a5f3b9f9698b1 (patch)
tree78b59c19d5e0621671c9d64ebef30d8a78c84713 /src/options.c
parent299c6bd912709f5e27fd6a8a0e1bad1bfb3e279a (diff)
downloadmpd-420a65325b977440effcfd820b5a5f3b9f9698b1.tar.gz
mpd-420a65325b977440effcfd820b5a5f3b9f9698b1.tar.xz
mpd-420a65325b977440effcfd820b5a5f3b9f9698b1.zip
due to bensonk's demand i added a splash screen.
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4741 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 89a62366b..a9a1f1f36 100644
--- a/src/options.c
+++ b/src/options.c
@@ -69,6 +69,7 @@ static arg_opt_t option_table[] = {
{ 'P', "password","PASSWORD", "Connect with password" },
{ 'f', "config", "FILE", "Read configuration from file" },
{ 'k', "key-file","FILE", "Read configuration from file" },
+ { 'S', "no-splash", NULL, "Don't show the splash screen" },
#ifdef DEBUG
{ 'K', "dump-keys", NULL, "Dump key bindings to stdout" },
{ 'D', "debug", NULL, "Enable debug output on stderr" },
@@ -215,6 +216,9 @@ handle_option(int c, char *arg)
g_free(options.key_file);
options.key_file = g_strdup(arg);
break;
+ case 'S': /* --key-file */
+ options.show_splash = FALSE;
+ break;
#ifdef DEBUG
case 'K': /* --dump-keys */
read_configuration(&options);
@@ -370,6 +374,7 @@ options_init( void )
options.screen_list = g_strsplit_set(DEFAULT_SCREEN_LIST, " ", 0);
options.timedisplay_type = DEFAULT_TIMEDISPLAY_TYPE;
options.lyrics_timeout = DEFAULT_LYRICS_TIMEOUT;
+ options.show_splash = TRUE;
return &options;
}