- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineParser.cpp
r33e801 r7912e9 52 52 #include "CommandLineParser.hpp" 53 53 #include "CommandLineParser_validate.hpp" 54 #include "Parameters/Specifics/KeyValuePair.hpp"55 54 #include "World.hpp" 56 55 … … 403 402 ; 404 403 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; 405 415 case TypeEnumContainer::RealSpaceMatrixType: 406 416 OptionList->add_options() … … 409 419 // po::value < RealSpaceMatrixValue >()->default_value(boost::lexical_cast<BoxValue>(currentOption->getDefaultValue().c_str())) : 410 420 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(),431 421 currentOption->getDescription().c_str()) 432 422 ;
Note:
See TracChangeset
for help on using the changeset viewer.