From db238cc23f3bb5c9768d30ae24b99e67a5795203 Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Sun, 24 Nov 2013 17:19:51 +0600 Subject: 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 --- src/CommandLine.hxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/CommandLine.hxx') 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 - class Error; struct options { - gboolean kill; - gboolean daemon; - gboolean log_stderr; - gboolean verbose; + bool kill; + bool daemon; + bool log_stderr; + bool verbose; }; bool -- cgit v1.2.3