diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-11-24 17:19:51 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-11-24 17:29:05 +0600 |
commit | db238cc23f3bb5c9768d30ae24b99e67a5795203 (patch) | |
tree | f6088e9948cfd7cdcf7f0a09c827ac46b9834dfb /src/CommandLine.hxx | |
parent | 75e9c798e0aaf182d8d4ffc311c8d1ed0206bc2d (diff) | |
download | mpd-db238cc23f3bb5c9768d30ae24b99e67a5795203.tar.gz mpd-db238cc23f3bb5c9768d30ae24b99e67a5795203.tar.xz mpd-db238cc23f3bb5c9768d30ae24b99e67a5795203.zip |
CommandLine: new command line parser
This implementation behaves mostly identical to old parser.
Few observable differences:
- There are no option groups (single group is used for all options)
- Option --stdout is hidden (it has been obsolete for a long time)
- MPD executable name (mpd) is hardcoded for simplicity
Diffstat (limited to 'src/CommandLine.hxx')
-rw-r--r-- | src/CommandLine.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/CommandLine.hxx b/src/CommandLine.hxx index 214150eae..3b24a0d77 100644 --- a/src/CommandLine.hxx +++ b/src/CommandLine.hxx @@ -20,15 +20,13 @@ #ifndef MPD_COMMAND_LINE_HXX #define MPD_COMMAND_LINE_HXX -#include <glib.h> - class Error; struct options { - gboolean kill; - gboolean daemon; - gboolean log_stderr; - gboolean verbose; + bool kill; + bool daemon; + bool log_stderr; + bool verbose; }; bool |