summaryrefslogtreecommitdiff
path: root/src/report.h
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/report.h
parent6d020a9b0ba2f20054de529f0183d23afdf32972 (diff)
downloadledger-53c6e826f1e41f29c86f1c86f179f38838123d1d.tar.gz
ledger-53c6e826f1e41f29c86f1c86f179f38838123d1d.tar.bz2
ledger-53c6e826f1e41f29c86f1c86f179f38838123d1d.zip
Restored --format, --date-format (-y), and --input-date-format options.
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/report.h b/src/report.h
index 03b80bc2..9c483c76 100644
--- a/src/report.h
+++ b/src/report.h
@@ -353,15 +353,17 @@ public:
return true;
}
-#if 0
- value_t option_date_format(call_scope_t& args) { // y:
- report->date_output_format = optarg;
+ value_t option_date_format_(call_scope_t& args) { // y:
+ ledger::output_date_format = args[0].as_string();
+ return true;
}
- value_t option_input_date_format(call_scope_t& args) { // :
- config->date_input_format = optarg;
+ value_t option_input_date_format_(call_scope_t& args) { // :
+ ledger::input_date_format = args[0].as_string();
+ return true;
}
+#if 0
value_t option_balance_format(call_scope_t& args) { // :
config->balance_format = optarg;
}