summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-15 09:51:50 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:21 -0400
commit2d7d6c6f15db791c6cf87bb394182827de8e30dc (patch)
treecd72d44bad739988c7300da508c5d50b64ea67a4 /main.cc
parent318d562c209066b29989b7a4a2109ba72327f517 (diff)
downloadfork-ledger-2d7d6c6f15db791c6cf87bb394182827de8e30dc.tar.gz
fork-ledger-2d7d6c6f15db791c6cf87bb394182827de8e30dc.tar.bz2
fork-ledger-2d7d6c6f15db791c6cf87bb394182827de8e30dc.zip
Added support for outputting to CSV format.
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index a0bd29c1..956a7972 100644
--- a/main.cc
+++ b/main.cc
@@ -118,6 +118,10 @@ int parse_and_report(int argc, char * argv[], char * envp[])
command = "P";
else if (command == "pricesdb")
command = "D";
+ else if (command == "csv") {
+ config.register_format = config.csv_register_format;
+ command = "r";
+ }
else
throw error(std::string("Unrecognized command '") + command + "'");