diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-26 17:17:01 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-26 17:17:01 -0400 |
commit | feff681f4464eb9b538bde613afaf3b03c7c223a (patch) | |
tree | 0dbe6b679048f0de05b9bd50d4fed53c68552dce /src/main.cc | |
parent | 92d1bbbe75df71731d458f5b48bcb0f145428920 (diff) | |
download | fork-ledger-feff681f4464eb9b538bde613afaf3b03c7c223a.tar.gz fork-ledger-feff681f4464eb9b538bde613afaf3b03c7c223a.tar.bz2 fork-ledger-feff681f4464eb9b538bde613afaf3b03c7c223a.zip |
Improved argument parsing logic used by the REPL
It now handles quoted strings, although it doesn't understand escape
sequences yet.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.cc b/src/main.cc index c9a922af..9f0e8690 100644 --- a/src/main.cc +++ b/src/main.cc @@ -37,21 +37,6 @@ using namespace ledger; -namespace { - strings_list split_arguments(char * line) - { - strings_list args; - - // jww (2009-02-04): This is too naive - for (char * p = std::strtok(line, " \t"); - p; - p = std::strtok(NULL, " \t")) - args.push_back(p); - - return args; - } -} - #ifdef HAVE_BOOST_PYTHON namespace ledger { extern char * argv0; |