diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-13 03:43:51 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-13 03:45:06 -0500 |
commit | c8dd3d28e3ed39ca93f9aac71a127f15c8d65e4b (patch) | |
tree | 5c9f9c862da2b193971a8f506c4d519ec0831ac3 /src/report.cc | |
parent | 2932e05c1841d7154c83ead89f15a664e09ecbf0 (diff) | |
download | fork-ledger-c8dd3d28e3ed39ca93f9aac71a127f15c8d65e4b.tar.gz fork-ledger-c8dd3d28e3ed39ca93f9aac71a127f15c8d65e4b.tar.bz2 fork-ledger-c8dd3d28e3ed39ca93f9aac71a127f15c8d65e4b.zip |
Added --time-report option
This is a rather basic option at the moment which only affects the
balance report. I use it as follows, for entering contractor hours into
a project planning application, where $1 is the contractor's timelog
file, and $2 is the date after which new entries appear in the file:
ledger -f $1 balance \
--account=payee \
--time-report \
-d "latest > [$2]" \
--datetime-format='%m/%d/%y %I:%M %p'
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc index cf227fe6..e93bd6fd 100644 --- a/src/report.cc +++ b/src/report.cc @@ -1224,6 +1224,7 @@ option_t<report_t> * report_t::lookup_option(const char * p) else OPT(total_data); else OPT(truncate_); else OPT(total_width_); + else OPT(time_report); break; case 'u': OPT(unbudgeted); |