summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-18 18:55:42 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-18 18:55:42 +0100
commit269c0ccb7c43220b757e88a0092c2dffe03d1e81 (patch)
treed6439382d236c1576b755995d95e9d5446198746 /src/global.cc
parent86dfc1e0be5dbfab195cba8a8be31d3dbf0f68c9 (diff)
downloadfork-ledger-269c0ccb7c43220b757e88a0092c2dffe03d1e81.tar.gz
fork-ledger-269c0ccb7c43220b757e88a0092c2dffe03d1e81.tar.bz2
fork-ledger-269c0ccb7c43220b757e88a0092c2dffe03d1e81.zip
Added a code comment
Diffstat (limited to 'src/global.cc')
-rw-r--r--src/global.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/global.cc b/src/global.cc
index 461c6985..c4ed5a8e 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -478,6 +478,9 @@ void global_scope_t::normalize_report_options(const string& verb)
rep.HANDLER(period_).off();
}
+ // If -j or -J were specified, set the appropriate format string now so as
+ // to avoid option ordering issues were we to have done it during the
+ // initial parsing of the options.
if (rep.HANDLED(amount_data)) {
rep.HANDLER(format_)
.on_with(string("?normalize"), rep.HANDLER(plot_amount_format_).value);