summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-19 14:26:08 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-19 14:26:08 -0400
commit39bdbbe053c5d9c6268672d2017bc5da299ec1b7 (patch)
tree6ffbda35a06da91c0f8b60bfe6d30d3be4a3055a /src/global.cc
parent7d1f125fa218f9405511a5a95b3a17718bff7c7a (diff)
downloadfork-ledger-39bdbbe053c5d9c6268672d2017bc5da299ec1b7.tar.gz
fork-ledger-39bdbbe053c5d9c6268672d2017bc5da299ec1b7.tar.bz2
fork-ledger-39bdbbe053c5d9c6268672d2017bc5da299ec1b7.zip
The sequence -M -p 2004 now equals -p 2004 -M
Diffstat (limited to 'src/global.cc')
-rw-r--r--src/global.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/global.cc b/src/global.cc
index c2a86569..f5ebe61a 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -372,29 +372,29 @@ void global_scope_t::normalize_report_options(const string& verb)
// jww (2008-08-14): This code really needs to be rationalized away
// for 3.0.
if (verb == "print" || verb == "entry" || verb == "dump") {
- rep.HANDLER(related).on();
- rep.HANDLER(related_all).on();
+ rep.HANDLER(related).on_only();
+ rep.HANDLER(related_all).on_only();
}
else if (verb == "equity") {
- rep.HANDLER(subtotal).on();
+ rep.HANDLER(subtotal).on_only();
}
else if (rep.HANDLED(related)) {
if (verb[0] == 'r') {
- rep.HANDLER(invert).on();
+ rep.HANDLER(invert).on_only();
} else {
- rep.HANDLER(subtotal).on();
- rep.HANDLER(related_all).on();
+ rep.HANDLER(subtotal).on_only();
+ rep.HANDLER(related_all).on_only();
}
}
if (! rep.HANDLED(empty))
- rep.HANDLER(display_).append("amount|(!xact&total)");
+ rep.HANDLER(display_).on("amount|(!xact&total)");
if (verb[0] != 'b' && verb[0] != 'r')
- rep.HANDLER(base).on();
+ rep.HANDLER(base).on_only();
if (rep.HANDLED(period_) && ! rep.HANDLED(sort_all_))
- rep.HANDLER(sort_entries_).on();
+ rep.HANDLER(sort_entries_).on_only();
}
void handle_debug_options(int argc, char * argv[])