diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-13 04:30:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-13 04:30:36 -0400 |
commit | eed99acfee278a73249e8ad74d7749c20ebad1cb (patch) | |
tree | 87eff07a1b34140afd2d7917a254013d70fa5ce7 /textual.cc | |
parent | a4f5abe860025c8f4120b3bfb7aea7e555692153 (diff) | |
download | fork-ledger-eed99acfee278a73249e8ad74d7749c20ebad1cb.tar.gz fork-ledger-eed99acfee278a73249e8ad74d7749c20ebad1cb.tar.bz2 fork-ledger-eed99acfee278a73249e8ad74d7749c20ebad1cb.zip |
long options are now supported
Diffstat (limited to 'textual.cc')
-rw-r--r-- | textual.cc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2,6 +2,7 @@ #include "autoxact.h" #include "valexpr.h" #include "error.h" +#include "option.h" #include <fstream> #include <sstream> @@ -470,6 +471,16 @@ unsigned int parse_textual_journal(std::istream& in, journal_t * journal, linenum++; break; + case ':': { // option setting + std::string opt; + in >> c; + in >> opt; + in.getline(line, MAX_LINE); + linenum++; + process_option(opt, line + 1); + break; + } + case '=': // automated transactions parse_automated_transactions(in, account_stack.front(), auto_xacts); break; |