summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-03-13 11:05:32 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-03-13 11:05:32 (GMT)
commit31949407692d3176e88bdcb6b08f78b598f20b3c (patch) (side-by-side diff)
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') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index fc1da42..dd542eb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -378,6 +378,8 @@ static struct argp_option options[] = {
#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 },
@@ -471,6 +473,10 @@ parse_opt(int key, char *arg, struct argp_state *state)
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);

Return to:

Send suggestions and report system problems to the System administrator.