aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-03-12 16:48:45 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-03-12 16:54:19 +0200
commit0c2f9cd46d7defc7df7112848c5eb817bd4564df (patch)
tree05bcf057ee64b3e9f9e066ac182d46b8a7f4a126 /src/wydawca.c
parent407bde189a8cd0009e9e3cad8d8ba80d45833979 (diff)
downloadwydawca-0c2f9cd46d7defc7df7112848c5eb817bd4564df.tar.gz
wydawca-0c2f9cd46d7defc7df7112848c5eb817bd4564df.tar.bz2
New informative options.
* modules/mailutils/mod_mailutils.c (wy_help): Implement module help. * src/wydawca.c (main): Using -t and -d options together produces a print out of the configuration parse tree. Additional -d option includes source file locations. * src/module.c (module_help): New function. * src/module.h (module_help): New proto.
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index 3561994..2f7332d 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -368,6 +368,14 @@ main(int argc, char **argv)
config_finish(tree);
modules_load();
+ if (lint_mode && wy_debug_level) {
+ grecs_print_node(tree,
+ GRECS_NODE_FLAG_DEFAULT|
+ (wy_debug_level > 1 ?
+ GRECS_NODE_FLAG_LOCUS : 0),
+ stdout);
+ fputc('\n', stdout);
+ }
grecs_tree_free(tree);
if (lint_mode)

Return to:

Send suggestions and report system problems to the System administrator.