From b6a16745229e4e4054ccf47749d3a32084cb03c9 Mon Sep 17 00:00:00 2001 From: djcb Date: Tue, 27 Dec 2016 17:45:19 +0200 Subject: [PATCH] mu: make 'mu' shortcut for 'mu help' --- mu/mu-config.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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 */