- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineParser.cpp
r7912e9 r33e801 52 52 #include "CommandLineParser.hpp" 53 53 #include "CommandLineParser_validate.hpp" 54 #include "Parameters/Specifics/KeyValuePair.hpp" 54 55 #include "World.hpp" 55 56 … … 402 403 ; 403 404 break; 404 case TypeEnumContainer::RandomNumberDistribution_ParametersType:405 OptionList->add_options()406 (currentOption->getKeyAndShortForm().c_str(),407 currentOption->hasDefaultValue() ?408 (_DefaultAsImplicit ?409 po::value < std::string >()->implicit_value(boost::lexical_cast< std::string >(currentOption->getDefaultValue().c_str())) :410 po::value < std::string >()->default_value(boost::lexical_cast< std::string >(currentOption->getDefaultValue().c_str()))) :411 po::value < std::string >(),412 currentOption->getDescription().c_str())413 ;414 break;415 405 case TypeEnumContainer::RealSpaceMatrixType: 416 406 OptionList->add_options() … … 419 409 // po::value < RealSpaceMatrixValue >()->default_value(boost::lexical_cast<BoxValue>(currentOption->getDefaultValue().c_str())) : 420 410 po::value < RealSpaceMatrixValue >(), 411 currentOption->getDescription().c_str()) 412 ; 413 break; 414 case TypeEnumContainer::KeyValueType: 415 OptionList->add_options() 416 (currentOption->getKeyAndShortForm().c_str(), 417 currentOption->hasDefaultValue() ? 418 (_DefaultAsImplicit ? 419 po::value < KeyValuePair >()->implicit_value(boost::lexical_cast< KeyValuePair >(currentOption->getDefaultValue().c_str())) : 420 po::value < KeyValuePair >()->default_value(boost::lexical_cast< KeyValuePair >(currentOption->getDefaultValue().c_str()))) : 421 po::value < KeyValuePair >(), 422 currentOption->getDescription().c_str()) 423 ; 424 break; 425 case TypeEnumContainer::ListOfKeyValuesType: 426 OptionList->add_options() 427 (currentOption->getKeyAndShortForm().c_str(), 428 // currentOption->hasDefaultValue() ? 429 // po::value < std::vector<KeyValuePair> >()->default_value(boost::lexical_cast< std::vector<KeyValuePair> >(currentOption->getDefaultValue().c_str())) : 430 po::value < std::vector<KeyValuePair> >()->multitoken(), 421 431 currentOption->getDescription().c_str()) 422 432 ;
Note:
See TracChangeset
for help on using the changeset viewer.