diff options
Diffstat (limited to 'src/main/getopt.cpp')
-rw-r--r-- | src/main/getopt.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/getopt.cpp b/src/main/getopt.cpp index 88840a8e8..e050a0dfb 100644 --- a/src/main/getopt.cpp +++ b/src/main/getopt.cpp @@ -68,7 +68,8 @@ enum OptionValue { USE_MMAP, SHOW_CONFIG, STRICT_PARSING, - DEFAULT_EXPR_DEPTH + DEFAULT_EXPR_DEPTH, + PRINT_EXPR_TYPES };/* enum OptionValue */ /** @@ -113,6 +114,7 @@ static struct option cmdlineOptions[] = { { "mmap", no_argument , NULL, USE_MMAP }, { "strict-parsing", no_argument , NULL, STRICT_PARSING }, { "default-expr-depth", required_argument, NULL, DEFAULT_EXPR_DEPTH }, + { "print-expr-types", no_argument , NULL, PRINT_EXPR_TYPES }, };/* if you add things to the above, please remember to update usage.h! */ /** Full argv[0] */ @@ -234,6 +236,17 @@ throw(OptionException) { } break; + case PRINT_EXPR_TYPES: + { + Debug.getStream() << Expr::printtypes(true); + Trace.getStream() << Expr::printtypes(true); + Notice.getStream() << Expr::printtypes(true); + Chat.getStream() << Expr::printtypes(true); + Message.getStream() << Expr::printtypes(true); + Warning.getStream() << Expr::printtypes(true); + } + break; + case SHOW_CONFIG: fputs(Configuration::about().c_str(), stdout); printf("\n"); |