From ef6161fefb09253b9de6d228c92ce41b3a0063dc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 30 Sep 2003 03:22:38 +0000 Subject: *** empty log message *** --- main.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index 29fdcaa2..00d900d2 100644 --- a/main.cc +++ b/main.cc @@ -13,7 +13,7 @@ namespace ledger { extern bool parse_ledger(std::istream& in); extern bool parse_gnucash(std::istream& in); - extern void report_balances(int argc, char *argv[], std::ostream& out); + extern void report_balances(int argc, char **argv, std::ostream& out); extern void print_ledger(int argc, char *argv[], std::ostream& out); } @@ -35,15 +35,16 @@ int main(int argc, char *argv[]) { // Global defaults - commodity_usd = new commodity("$", true, false, 2); - commodities.insert(commodities_entry("USD", commodity_usd)); + commodity * usd = new commodity("$", true, false, true, false, 2); + commodities.insert(commodities_entry("USD", usd)); // Parse the command-line options int c; - while (-1 != (c = getopt(argc, argv, "+h"))) { + while (-1 != (c = getopt(argc, argv, "+hw"))) { switch (char(c)) { case 'h': show_help(std::cout); break; + case 'w': use_warnings = true; break; } } -- cgit v1.2.3