summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 7356a958..da5ec84f 100644
--- a/main.cc
+++ b/main.cc
@@ -217,6 +217,11 @@ static int read_and_report(ledger::report_t& report, int argc, char * argv[],
*out << expr.calc(report).strip_annotations() << std::endl;
return 0;
}
+ else if (verb == "format") {
+ format_t fmt(*arg);
+ fmt.dump(*out);
+ return 0;
+ }
// Parse the initialization file, which can only be textual; then
// parse the journal data.