summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2010-09-06 15:01:09 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2012-11-10 12:02:00 +0100
commit36f87f49d86e931bb99a226cd47721219ccd6301 (patch)
tree771d4fe5bf7d0954f80d7a9edff7900b4b351152 /src/session.cc
parente77e9d692aea5a061f6fde144a56de085b1a74c4 (diff)
downloadfork-ledger-36f87f49d86e931bb99a226cd47721219ccd6301.tar.gz
fork-ledger-36f87f49d86e931bb99a226cd47721219ccd6301.tar.bz2
fork-ledger-36f87f49d86e931bb99a226cd47721219ccd6301.zip
Add --time-colon option
The --time-colon option will display the value for a seconds based commodity as real hours and minutes. For example 8100 seconds by default will be displayed as 2.25 whereas with the --time-colon option they will be displayed as 2:15.
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session.cc b/src/session.cc
index b6153203..7072fb09 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -348,9 +348,11 @@ option_t<session_t> * session_t::lookup_option(const char * p)
case 's':
OPT(strict);
break;
+ case 't':
+ OPT(time_colon);
+ break;
case 'v':
OPT(value_expr_);
- break;
}
return NULL;
}