Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/CommandLineParser.cpp

    r7912e9 r33e801  
    5252#include "CommandLineParser.hpp"
    5353#include "CommandLineParser_validate.hpp"
     54#include "Parameters/Specifics/KeyValuePair.hpp"
    5455#include "World.hpp"
    5556
     
    402403        ;
    403404      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;
    415405    case TypeEnumContainer::RealSpaceMatrixType:
    416406      OptionList->add_options()
     
    419409//                  po::value < RealSpaceMatrixValue >()->default_value(boost::lexical_cast<BoxValue>(currentOption->getDefaultValue().c_str())) :
    420410                  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(),
    421431                  currentOption->getDescription().c_str())
    422432        ;
Note: See TracChangeset for help on using the changeset viewer.