diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-14 19:41:20 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-14 19:44:30 -0400 |
commit | 53c6e826f1e41f29c86f1c86f179f38838123d1d (patch) | |
tree | 99e9113d9089cda0b9978781681e4f2ba399ab7b /src/main.cc | |
parent | 6d020a9b0ba2f20054de529f0183d23afdf32972 (diff) | |
download | fork-ledger-53c6e826f1e41f29c86f1c86f179f38838123d1d.tar.gz fork-ledger-53c6e826f1e41f29c86f1c86f179f38838123d1d.tar.bz2 fork-ledger-53c6e826f1e41f29c86f1c86f179f38838123d1d.zip |
Restored --format, --date-format (-y), and --input-date-format options.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index d3dda002..a4e78ab7 100644 --- a/src/main.cc +++ b/src/main.cc @@ -400,7 +400,10 @@ namespace ledger { if (verb == "register" || verb == "reg" || verb == "r") { verb = "register"; - command = reporter<>(new format_xacts(report, session.register_format)); + command = reporter<>(new format_xacts(report, + report.format_string.empty() ? + session.register_format : + report.format_string)); } else if (verb == "print" || verb == "p") { verb = "print"; |