aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmdline.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* log: added log_early_init() for early debug messagesMax Kellermann2009-02-191-0/+5
|
* conf: no CamelCase, part IMax Kellermann2009-01-171-4/+4
| | | | Renamed functions, types, variables.
* allow ~/.mpd/mpd.conf as alternate config fileJérôme Quelin2009-01-141-8/+15
| | | | | | | | | | | | mpd uses some additional files to work, such as pid_file, state_file, db_file, etc. when running mpd as non-root user, it is often that those files end in ~/.mpd in that case, we end up with 2 entries in a user's home, .mpdconf and .mpd - which clutters homedirs. this patch allows ~/.mpd/mpd.conf as an alternative to ~/.mpdconf, allowing for a cleaner homedir
* don't exit after --create-dbMax Kellermann2009-01-041-1/+1
| | | | | Start the daemon after --create-db. This makes --create-db a flag which discards the old database and starts with a fresh one.
* cmdline: exit after --versionMax Kellermann2009-01-011-0/+3
| | | | Don't start the daemon when MPD is called with "--version".
* print supported decoders in --versionViliam Mateicka2008-12-301-0/+4
|
* removed os_compat.hMax Kellermann2008-12-291-0/+1
| | | | | Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
* log: deprecated "error_file" optionMax Kellermann2008-12-281-1/+1
| | | | | Removed the "error_file" option. There is only one log file now. If a user wants to see only the errors, he should configure a log_level.
* cmdline: fixed option_no_createdb usageViliam Mateicka2008-12-271-1/+1
|
* cmdline: use g_build_filename() for ~/.mpdconfMax Kellermann2008-12-271-20/+10
| | | | | Build the path with g_build_filename(). Also use g_get_home_dir() and g_file_test().
* cmdline: use GLib's option parserMax Kellermann2008-12-271-84/+75
| | | | | Eliminate duplicated code. The GLib code is much more mature than MPD's custom parser.
* cmdline: use gboolean instead of intMax Kellermann2008-12-271-11/+9
| | | | | Prepare for the migration to the GLib option parser, which uses gboolean for flags.
* moved command line parser to cmdline.cMax Kellermann2008-12-271-0/+165