don't exit after --create-db

Start the daemon after --create-db.  This makes --create-db a flag
which discards the old database and starts with a fresh one.
This commit is contained in:
Max Kellermann
2009-01-04 20:31:23 +01:00
parent 6fb8c54939
commit e4a53df7db
5 changed files with 4 additions and 15 deletions

View File

@@ -86,7 +86,7 @@ void parseOptions(int argc, char **argv, Options *options)
{ "kill", 0, 0, G_OPTION_ARG_NONE, &options->kill,
"kill the currently running mpd session", NULL },
{ "create-db", 0, 0, G_OPTION_ARG_NONE, &option_create_db,
"force (re)creation of database and exit", NULL },
"force (re)creation of database", NULL },
{ "no-create-db", 0, 0, G_OPTION_ARG_NONE, &option_no_create_db,
"don't create database, even if it doesn't exist", NULL },
{ "no-daemon", 0, 0, G_OPTION_ARG_NONE, &option_no_daemon,