From 9e5e2b04e8f36c3b53d67360d4be292ef5290a71 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 11 Dec 2009 22:04:54 +0200 Subject: [PATCH] * mu-config: gather all the remaining args --- src/mu-config.c | 4 ++++ src/mu-config.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/mu-config.c b/src/mu-config.c index f681dbac..59626837 100644 --- a/src/mu-config.c +++ b/src/mu-config.c @@ -42,6 +42,8 @@ mu_config_options_group_mu (MuConfigOptions *opts) {"log-append", 'a', 0, G_OPTION_ARG_NONE, &opts->log_append, "append to the current logfile (instead of overwriting it)", NULL}, + { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, + &opts->params, "parameters", NULL }, { NULL, 0, 0, 0, NULL, NULL, NULL } }; @@ -138,4 +140,6 @@ mu_config_uninit (MuConfigOptions *opts) * for the 'outside world' */ g_free ((gchar*)opts->muhome); g_free ((gchar*)opts->maildir); + + g_strfreev (opts->params); } diff --git a/src/mu-config.h b/src/mu-config.h index dcd42bb6..23307247 100644 --- a/src/mu-config.h +++ b/src/mu-config.h @@ -35,6 +35,7 @@ struct _MuConfigOptions { gboolean version; /* request mu version */ gboolean log_stderr; /*log to stderr (instead of logfile)*/ gboolean log_append; /* append to log (instead of overwriting)*/ + gchar** params; /* parameters (for querying) */ /* options for indexing */