diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-10-12 11:30:32 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-10-12 11:30:32 +0300 |
commit | af83aaff0e41587fcdbe78983b6e116e442f17a1 (patch) | |
tree | a758f23c2842b03bd7adbfbc3d2bf9d479ab6032 /sieve | |
parent | d56b82437f909ff323d9cd87f2ed9f04322f9966 (diff) | |
download | mailutils-af83aaff0e41587fcdbe78983b6e116e442f17a1.tar.gz mailutils-af83aaff0e41587fcdbe78983b6e116e442f17a1.tar.bz2 |
Fix some incompatibilities in the previous commit.
* dotlock/dotlock.c (force): Change type to unsigned.
Provide default value for --force.
(cli): Set exit codes and extra docstring.
* include/mailutils/cli.h (mu_cli_setup): New members: prog_extra_doc,
ex_usage, ex_config.
* include/mailutils/opt.h (mu_parseopt_getcolumn)
(mu_parseopt_fmt_text): New prototypes.
* libmailutils/cli/cli.c (extra_help_hook): New hook.
(mu_cli): Set up customized exit codes.
Pass pointer to struct mu_cli_setup in hints.data.
All uses changed.
Set up help hook if setup->prog_extra_doc is defined.
* libmailutils/opt/help.c (mu_parseopt_getcolumn): New
function.
(print_option_descr): Honor explicit newlines.
(mu_parseopt_fmt_text): New function.
* mimeview/mimeview.c (cli): Provide extra docs.
* sieve/sieve.c: Likewise.
Diffstat (limited to 'sieve')
-rw-r--r-- | sieve/sieve.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sieve/sieve.c b/sieve/sieve.c index 5de8e6113..2627bd19d 100644 --- a/sieve/sieve.c +++ b/sieve/sieve.c @@ -247,7 +247,13 @@ static struct mu_cli_setup cli = { options, sieve_cfg_param, N_("GNU sieve -- a mail filtering tool."), - "SCRIPT" + "SCRIPT", + N_("Debug flags:\n\ + g - main parser traces\n\ + T - mailutils traces (same as --debug-level=sieve.trace0-trace1)\n\ + P - network protocols (same as --debug-level=sieve.=prot)\n\ + t - sieve trace (MU_SIEVE_DEBUG_TRACE)\n\ + i - sieve instructions trace (MU_SIEVE_DEBUG_INSTR)\n") }; static void |