diff --git a/mu/mu-config.c b/mu/mu-config.c index 0e3fd5e3..bd744f86 100644 --- a/mu/mu-config.c +++ b/mu/mu-config.c @@ -622,14 +622,12 @@ mu_config_show_help (MuConfigCmd cmd) cleanhelp = massage_help (g_option_context_get_help (ctx, TRUE, group)); - g_print ("usage:\n\t%s\n%s", + g_print ("usage:\n\t%s%s", get_help_string (cmd, FALSE), cleanhelp); g_free (cleanhelp); } - - static gboolean cmd_help (void) { @@ -650,16 +648,6 @@ cmd_help (void) return TRUE; } - -static void -show_usage (void) -{ - g_print ("usage: mu [options] [parameters]\n"); - g_print ("try 'mu help ', or "); - g_print ("see the mu, mu- or mu-easy manpages.\n"); -} - - static gboolean parse_params (int *argcp, char ***argvp, GError **err) { @@ -678,8 +666,6 @@ parse_params (int *argcp, char ***argvp, GError **err) 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 */