summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2013-01-29 09:34:08 -0800
committerJohn Wiegley <johnw@newartisans.com>2013-01-29 09:34:08 -0800
commitec7402fff89383a9f798b78ed027aa2a51d9745c (patch)
tree648ab66ff78db6de2c919313f6f01bad5dd78a5a /src/session.h
parenta5adcaad3e38efdad19aa14fa2bb73044936c8f9 (diff)
parent36f87f49d86e931bb99a226cd47721219ccd6301 (diff)
downloadledger-ec7402fff89383a9f798b78ed027aa2a51d9745c.tar.gz
ledger-ec7402fff89383a9f798b78ed027aa2a51d9745c.tar.bz2
ledger-ec7402fff89383a9f798b78ed027aa2a51d9745c.zip
Merge pull request #107 from afh/pull/time_colon
Add --time-colon option
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h
index a0aba91b..74aeab5f 100644
--- a/src/session.h
+++ b/src/session.h
@@ -100,6 +100,7 @@ public:
HANDLER(day_break).report(out);
HANDLER(download).report(out);
HANDLER(decimal_comma).report(out);
+ HANDLER(time_colon).report(out);
HANDLER(file_).report(out);
HANDLER(input_date_format_).report(out);
HANDLER(explicit).report(out);
@@ -130,6 +131,10 @@ public:
commodity_t::decimal_comma_by_default = true;
});
+ OPTION_(session_t, time_colon, DO() {
+ commodity_t::time_colon_by_default = true;
+ });
+
OPTION__
(session_t, price_exp_, // -Z
CTOR(session_t, price_exp_) { value = "24"; });