summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-07 12:46:46 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-07 12:46:46 -0600
commit7e250696e02e0392bc865f66570da296ced124ab (patch)
tree8195a38ca7c6e04610f2ca3cecea900ff08f66de /src/global.cc
parent77292ac3cda2f1052559991b9d53f1ad7c1fec9a (diff)
downloadledger-7e250696e02e0392bc865f66570da296ced124ab.tar.gz
ledger-7e250696e02e0392bc865f66570da296ced124ab.tar.bz2
ledger-7e250696e02e0392bc865f66570da296ced124ab.zip
Many options now have additive effect
For example, -A and -V used to override each other, whereas now: -A report the average amount -V report all amounts at current value -AV report the current value of the average -VA report the average of all current values
Diffstat (limited to 'src/global.cc')
-rw-r--r--src/global.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/global.cc b/src/global.cc
index 5b7bb1c1..cc14c99e 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -70,6 +70,7 @@ global_scope_t::global_scope_t(char ** envp)
// generated.
report_stack.push_front(new report_t(*session_ptr));
scope_t::default_scope = &report();
+ scope_t::empty_scope = &empty_scope;
// Read the user's options, in the following order:
//