* mu-config: gather all the remaining args

This commit is contained in:
Dirk-Jan C. Binnema 2009-12-11 22:04:54 +02:00
parent ab9039b36e
commit 9e5e2b04e8
2 changed files with 5 additions and 0 deletions

View File

@ -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);
}

View File

@ -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 */