* mu: small cleanups to pass 'make cc10', 'make line35'

This commit is contained in:
djcb
2012-10-23 20:57:46 +03:00
parent 924e3c62df
commit 94fcf1c5ad
3 changed files with 26 additions and 33 deletions

View File

@ -640,13 +640,14 @@ parse_params (int *argcp, char ***argvp)
err = NULL;
rv = TRUE;
g_option_context_set_main_group(context,
config_options_group_mu());
switch (MU_CONFIG.cmd) {
case MU_CONFIG_CMD_NONE: show_usage(); break;
case MU_CONFIG_CMD_HELP:
/* 'help' is special; sucks in the options of the
* command after it */
g_option_context_set_main_group(context,
config_options_group_mu());
rv = g_option_context_parse (context, argcp, argvp, &err) &&
cmd_help ();
break;
@ -656,8 +657,6 @@ parse_params (int *argcp, char ***argvp)
g_option_context_set_ignore_unknown_options (context, TRUE);
/* fall through */
default:
g_option_context_set_main_group(context,
config_options_group_mu());
group = get_option_group (MU_CONFIG.cmd);
if (group)
g_option_context_add_group(context, group);