summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--opt.c2
-rw-r--r--parse.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/opt.c b/opt.c
index e305588..14996f2 100644
--- a/opt.c
+++ b/opt.c
@@ -984,6 +984,8 @@ static struct expr *optimize_expr(struct opt_state *state, struct expr *expr) {
}
int optimize_cmdline(struct cmdline *cmdline) {
+ dump_cmdline(cmdline, DEBUG_OPT);
+
struct opt_facts facts_when_impure;
set_facts_impossible(&facts_when_impure);
diff --git a/parse.c b/parse.c
index 4fc06e1..7914363 100644
--- a/parse.c
+++ b/parse.c
@@ -3467,12 +3467,12 @@ void dump_cmdline(const struct cmdline *cmdline, enum debug_flags flag) {
if (flag == DEBUG_RATES) {
if (cmdline->exclude != &expr_false) {
- cfprintf(cerr, "${red}-exclude${rs} %pE ", cmdline->exclude);
+ cfprintf(cerr, "(${red}-exclude${rs} %pE) ", cmdline->exclude);
}
cfprintf(cerr, "%pE", cmdline->expr);
} else {
if (cmdline->exclude != &expr_false) {
- cfprintf(cerr, "${red}-exclude${rs} %pe ", cmdline->exclude);
+ cfprintf(cerr, "(${red}-exclude${rs} %pe) ", cmdline->exclude);
}
cfprintf(cerr, "%pe", cmdline->expr);
}