From d8f35f3152aae177bf0848f6e1e1429600730bb1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Feb 2005 05:04:49 +0000 Subject: (parse_and_report): Added new "reconcile" and "output" commands. Likely not to be documented, as these are intended primarily for future GUI development. --- main.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main.cc b/main.cc index 5139ae37..e7748914 100644 --- a/main.cc +++ b/main.cc @@ -238,6 +238,8 @@ int parse_and_report(int argc, char * argv[], char * envp[]) command = "r"; else if (command == "print" || command == "p") command = "p"; + else if (command == "output") + command = "w"; else if (command == "xml") command = "X"; else if (command == "entry") @@ -246,6 +248,8 @@ int parse_and_report(int argc, char * argv[], char * envp[]) command = "E"; else if (command == "prices") command = "P"; + else if (command == "reconcile") + command = "R"; else throw error(std::string("Unrecognized command '") + command + "'"); @@ -297,12 +301,14 @@ int parse_and_report(int argc, char * argv[], char * envp[]) format = &config.format_string; else if (command == "b") format = &config.balance_format; - else if (command == "r") + else if (command == "r" || command == "R") format = &config.register_format; else if (command == "E") format = &config.equity_format; else if (command == "P") format = &config.prices_format; + else if (command == "w") + format = &config.write_xact_format; else format = &config.print_format; @@ -354,6 +360,10 @@ def vmax(d, val):\n\ walk_transactions(new_entry->transactions, *formatter); else if (command == "P") walk_commodities(commodity_t::commodities, *formatter); + else if (command == "R") + reconcile_account(*journal, *journal->master, value_t(long(0))); + else if (command == "w") + write_textual_journal(*journal, *arg, *formatter, *out); else walk_entries(journal->entries, *formatter); -- cgit v1.2.3