diff options
author | John Wiegley <johnw@newartisans.com> | 2006-02-15 09:51:50 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:21 -0400 |
commit | 2d7d6c6f15db791c6cf87bb394182827de8e30dc (patch) | |
tree | cd72d44bad739988c7300da508c5d50b64ea67a4 /main.cc | |
parent | 318d562c209066b29989b7a4a2109ba72327f517 (diff) | |
download | fork-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.cc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 + "'"); |