summaryrefslogtreecommitdiff
path: root/indra/newview/llcommandlineparser.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-05-24 20:35:25 -0400
committerOz Linden <oz@lindenlab.com>2012-05-24 20:35:25 -0400
commit1d01ad116220503ac688641d939a8fee095f817b (patch)
tree6d446188dbfeaf555cf6b9a64c297483f2fa7cc2 /indra/newview/llcommandlineparser.cpp
parent1f0addf6e48c54ab33e0f02bab27cdf6e86d55fb (diff)
parent77488911a30021b6576ad5047395405a98e11b8d (diff)
merge changes for DRTVWR-151
Diffstat (limited to 'indra/newview/llcommandlineparser.cpp')
-rw-r--r--indra/newview/llcommandlineparser.cpp9
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