summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-13 04:30:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-13 04:30:36 -0400
commiteed99acfee278a73249e8ad74d7749c20ebad1cb (patch)
tree87eff07a1b34140afd2d7917a254013d70fa5ce7 /textual.cc
parenta4f5abe860025c8f4120b3bfb7aea7e555692153 (diff)
downloadfork-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.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/textual.cc b/textual.cc
index 7970c23a..d2685a00 100644
--- a/textual.cc
+++ b/textual.cc
@@ -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;