summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-14 19:41:20 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-14 19:44:30 -0400
commit53c6e826f1e41f29c86f1c86f179f38838123d1d (patch)
tree99e9113d9089cda0b9978781681e4f2ba399ab7b /src/main.cc
parent6d020a9b0ba2f20054de529f0183d23afdf32972 (diff)
downloadfork-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.cc5
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";