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
cbdaf482
Commit
cbdaf482
authored
Sep 22, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CommandLine: make all OptionDefs "constexpr"
parent
f2c28d28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
CommandLine.cxx
src/CommandLine.cxx
+9
-9
No files found.
src/CommandLine.cxx
View file @
cbdaf482
...
...
@@ -74,23 +74,23 @@
#define USER_CONFIG_FILE_LOCATION_XDG "mpd/mpd.conf"
#endif
static
const
OptionDef
opt_kill
(
static
const
expr
OptionDef
opt_kill
(
"kill"
,
"kill the currently running mpd session"
);
static
const
OptionDef
opt_no_config
(
static
const
expr
OptionDef
opt_no_config
(
"no-config"
,
"don't read from config"
);
static
const
OptionDef
opt_no_daemon
(
static
const
expr
OptionDef
opt_no_daemon
(
"no-daemon"
,
"don't detach from console"
);
static
const
OptionDef
opt_stdout
(
static
const
expr
OptionDef
opt_stdout
(
"stdout"
,
nullptr
);
// hidden, compatibility with old versions
static
const
OptionDef
opt_stderr
(
static
const
expr
OptionDef
opt_stderr
(
"stderr"
,
"print messages to stderr"
);
static
const
OptionDef
opt_verbose
(
static
const
expr
OptionDef
opt_verbose
(
"verbose"
,
'v'
,
"verbose logging"
);
static
const
OptionDef
opt_version
(
static
const
expr
OptionDef
opt_version
(
"version"
,
'V'
,
"print version number"
);
static
const
OptionDef
opt_help
(
static
const
expr
OptionDef
opt_help
(
"help"
,
'h'
,
"show help options"
);
static
const
OptionDef
opt_help_alt
(
static
const
expr
OptionDef
opt_help_alt
(
nullptr
,
'?'
,
nullptr
);
// hidden, standard alias for --help
static
constexpr
Domain
cmdline_domain
(
"cmdline"
);
...
...
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