aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcommandlineparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llcommandlineparser.cpp')
-rw-r--r--linden/indra/newview/llcommandlineparser.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llcommandlineparser.cpp b/linden/indra/newview/llcommandlineparser.cpp
index dc6a1e2..5dafe78 100644
--- a/linden/indra/newview/llcommandlineparser.cpp
+++ b/linden/indra/newview/llcommandlineparser.cpp
@@ -416,11 +416,6 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value,
416 const std::string& opt_name, 416 const std::string& opt_name,
417 LLControlGroup* ctrlGroup) 417 LLControlGroup* ctrlGroup)
418{ 418{
419 if(value.size() > 1)
420 {
421 llwarns << "Ignoring extra tokens mapped to the setting: " << opt_name << "." << llendl;
422 }
423
424 // *FIX: Do sematic conversion here. 419 // *FIX: Do sematic conversion here.
425 // LLSD (ImplString) Is no good for doing string to type conversion for... 420 // LLSD (ImplString) Is no good for doing string to type conversion for...
426 // booleans 421 // booleans
@@ -457,7 +452,7 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value,
457 default: 452 default:
458 { 453 {
459 // For the default types, let llsd do the conversion. 454 // For the default types, let llsd do the conversion.
460 if(value.size() > 1) 455 if(value.size() > 1 && ctrl->isType(TYPE_LLSD))
461 { 456 {
462 // Assume its an array... 457 // Assume its an array...
463 LLSD llsdArray; 458 LLSD llsdArray;
@@ -472,6 +467,11 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value,
472 } 467 }
473 else if(value.size() > 0) 468 else if(value.size() > 0)
474 { 469 {
470 if(value.size() > 1)
471 {
472 llwarns << "Ignoring extra tokens mapped to the setting: " << opt_name << "." << llendl;
473 }
474
475 LLSD llsdValue; 475 LLSD llsdValue;
476 llsdValue.assign(LLSD::String(value[0])); 476 llsdValue.assign(LLSD::String(value[0]));
477 ctrl->setValue(llsdValue, false); 477 ctrl->setValue(llsdValue, false);