diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-03-06 11:15:24 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-03-06 11:15:24 -0500 |
commit | f35a662b66e93d916fc439a155aeff6446852405 (patch) | |
tree | 884da65c01a892fdb12f6f2f69fbee90c72a4310 /indra/newview/llcommandlineparser.cpp | |
parent | ca36a06d2e994178cecfae249f7f1cc3af3554a0 (diff) | |
parent | 106bac8ed77339e7c986b3066bf96210d327898d (diff) |
Automated merge with http://hg.secondlife.com/viewer-development
Diffstat (limited to 'indra/newview/llcommandlineparser.cpp')
-rw-r--r-- | indra/newview/llcommandlineparser.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llcommandlineparser.cpp b/indra/newview/llcommandlineparser.cpp index 65c61c4a8b..17d403bbe1 100644 --- a/indra/newview/llcommandlineparser.cpp +++ b/indra/newview/llcommandlineparser.cpp @@ -342,6 +342,15 @@ bool LLCommandLineParser::parseCommandLine(int argc, char **argv) return parseAndStoreResults(clp); } +// TODO: +// - Break out this funky parsing logic into separate method +// - Unit-test it with tests like LLStringUtil::getTokens() (the command-line +// overload that supports quoted tokens) +// - Unless this logic offers significant semantic benefits, replace it with +// LLStringUtil::getTokens(). This would fix a known bug: you cannot --set a +// string-valued variable to the empty string, because empty strings are +// eliminated below. + bool LLCommandLineParser::parseCommandLineString(const std::string& str) { // Split the string content into tokens |