mu: make 'mu' shortcut for 'mu help'

This commit is contained in:
djcb 2016-12-27 17:45:19 +02:00
parent 800cb0e164
commit b6a1674522
1 changed files with 1 additions and 15 deletions

View File

@ -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 <command> [options] [parameters]\n");
g_print ("try 'mu help <command>', or ");
g_print ("see the mu, mu-<command> 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 */