diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-08 03:33:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-08 03:33:56 -0400 |
commit | 842359474e36d8406305b874e82c12594dbc154c (patch) | |
tree | 49f186fe2cdbc212430bf18dcde972a8b2c33198 /main.cc | |
parent | 612e94ceaa1f063250b706530b9515ce77b32c59 (diff) | |
download | fork-ledger-842359474e36d8406305b874e82c12594dbc154c.tar.gz fork-ledger-842359474e36d8406305b874e82c12594dbc154c.tar.bz2 fork-ledger-842359474e36d8406305b874e82c12594dbc154c.zip |
optimize python iterations of entries, transactions; use exceptions more
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -290,11 +290,8 @@ int parse_and_report(int argc, char * argv[], char * envp[]) command = "e"; else if (command == "equity") command = "E"; - else { - std::ostringstream msg; - msg << "Unrecognized command '" << command << "'"; - throw error(msg.str()); - } + else + throw error(std::string("Unrecognized command '") + command + "'"); config.process_options(command, arg, args.end()); |