diff --git a/mu/mu-cmd-script.c b/mu/mu-cmd-script.c index c825e0e7..c58d0b35 100644 --- a/mu/mu-cmd-script.c +++ b/mu/mu-cmd-script.c @@ -1,3 +1,4 @@ + /* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/ /* @@ -76,7 +77,9 @@ print_scripts (GSList *scripts, gboolean verbose, const char *rxstr, g_print ("\n"); first = FALSE; - g_print ("%s%s%s", name, + g_print ("%s%s%s%s", + verbose ? "" : " * ", + name, oneline ? ": " : "", oneline ? oneline :""); diff --git a/mu/mu-config.c b/mu/mu-config.c index 751aa775..3e515ea8 100644 --- a/mu/mu-config.c +++ b/mu/mu-config.c @@ -601,13 +601,18 @@ cmd_help (void) { MuConfigCmd cmd; - cmd = cmd_from_string (MU_CONFIG.params[1]); + if (!MU_CONFIG.params) + cmd = MU_CONFIG_CMD_UNKNOWN; + else + cmd = cmd_from_string (MU_CONFIG.params[1]); + if (cmd == MU_CONFIG_CMD_UNKNOWN) { mu_config_show_help (MU_CONFIG_CMD_HELP); return TRUE; } mu_config_show_help (cmd); + return TRUE; } @@ -640,6 +645,8 @@ parse_params (int *argcp, char ***argvp) 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; diff --git a/mu/mu-help-strings.txt b/mu/mu-help-strings.txt index 64c225d7..b2480cbe 100644 --- a/mu/mu-help-strings.txt +++ b/mu/mu-help-strings.txt @@ -21,9 +21,8 @@ #STRING mu add [] #STRING -mu add is the command to add specific measage files to the -database. Each of the files must be specified with an -absolute path +mu add is the command to add specific measage files to the database. Each of the +files must be specified with an absolute path. #END #BEGIN MU_CONFIG_CMD_CFIND @@ -48,8 +47,19 @@ mu find [options] #STRING mu find is the mu command for searching e-mail message that were stored earlier using mu index(1). -#END +Some examples: + # get all messages with 'bananas' in body, subject or recipient fields: + $ mu find bananas + + # get all messages regarding bananas from John with an attachment: + $ mu find from:john flag:attach bananas + + # get all messages with subject wombat in June 2009 + $ mu find subject:wombat date:20090601..20090630 + +See the `mu-find' and `mu-easy' man-pages for more information. +#END #BEGIN MU_CONFIG_CMD_HELP #STRING @@ -106,6 +116,17 @@ With -v, give longer descriptions of each script. With --script=