Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
de075474
Commit
de075474
authored
Feb 25, 2009
by
Avuton Olrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdline: Add --no-config to explicitly set daemon default options.
parent
a4cf7b7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
cmdline.c
src/cmdline.c
+7
-2
No files found.
src/cmdline.c
View file @
de075474
...
...
@@ -81,7 +81,8 @@ void parseOptions(int argc, char **argv, Options *options)
GOptionContext
*
context
;
bool
ret
;
static
gboolean
option_version
,
option_create_db
,
option_no_create_db
,
option_no_daemon
;
option_create_db
,
option_no_create_db
,
option_no_daemon
,
option_no_config
;
const
GOptionEntry
entries
[]
=
{
{
"version"
,
'V'
,
0
,
G_OPTION_ARG_NONE
,
&
option_version
,
"print version number"
,
NULL
},
...
...
@@ -97,6 +98,8 @@ void parseOptions(int argc, char **argv, Options *options)
"print messages to stderr"
,
NULL
},
{
"verbose"
,
'v'
,
0
,
G_OPTION_ARG_NONE
,
&
options
->
verbose
,
"verbose logging"
,
NULL
},
{
"no-config"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
option_no_config
,
"don't read from config"
,
NULL
},
{
.
long_name
=
NULL
}
};
...
...
@@ -138,7 +141,9 @@ void parseOptions(int argc, char **argv, Options *options)
options
->
daemon
=
!
option_no_daemon
;
if
(
argc
<=
1
)
{
if
(
option_no_config
)
{
g_debug
(
"Ignoring config, using daemon defaults
\n
"
);
}
else
if
(
argc
<=
1
)
{
/* default configuration file path */
char
*
path1
;
char
*
path2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment