aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-03-13 13:05:32 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-03-13 13:05:32 +0200
commit31949407692d3176e88bdcb6b08f78b598f20b3c (patch)
treedc74fb66369ac6ac8c5fbffa4caf2248cbea62f4 /src/main.c
parentb25e8398d9922bedfd9488d4fb7f2a87b7ab5f40 (diff)
downloadmailfromd-31949407692d3176e88bdcb6b08f78b598f20b3c.tar.gz
mailfromd-31949407692d3176e88bdcb6b08f78b598f20b3c.tar.bz2
Improve docs
* NEWS: Update. * doc/functions.texi: Document new built-in and most library functions. * doc/upgrade.texi: Update. * src/builtin/debug.bi (debug_level): Fix the use of modname. (debug_spec): Remove the minlevel parameter. * src/builtin/io.bi: Remove misleading comment. * src/main.c: Restore the --debug option.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index fc1da42c..dd542eb1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -375,12 +375,14 @@ static struct argp_option options[] = {
N_("set I/O operation timeout"), GRP+1 },
#undef GRP
#define GRP 40
{ NULL, 0, NULL, 0,
N_("Informational and debugging options"), GRP },
+ { "debug", 'd', N_("LEVEL"), 0,
+ N_("set debugging level"), GRP+1 },
{ "location-column", OPTION_LOCATION_COLUMN, NULL, 0,
N_("print location column numbers in compiler diagnostics messages"),
GRP+1 },
{ "trace", OPTION_TRACE, NULL, 0,
N_("trace executed actions"), GRP+1 },
{ "trace-program", OPTION_TRACE_PROGRAM, N_("MODULES"),
@@ -468,12 +470,16 @@ parse_opt(int key, char *arg, struct argp_state *state)
switch (key) {
case 'D':
ext_pp_options_given = 1;
add_pp_option("-D", arg);
break;
+ case 'd':
+ mf_optcache_set_option("debug", arg);
+ break;
+
case 'U':
ext_pp_options_given = 1;
add_pp_option("-U", arg);
break;
case 'E':

Return to:

Send suggestions and report system problems to the System administrator.