Ignore:
File:
1 edited

Legend:

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

    r33e801 r7912e9  
    5252#include "CommandLineParser.hpp"
    5353#include "CommandLineParser_validate.hpp"
    54 #include "Parameters/Specifics/KeyValuePair.hpp"
    5554#include "World.hpp"
    5655
     
    403402        ;
    404403      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;
    405415    case TypeEnumContainer::RealSpaceMatrixType:
    406416      OptionList->add_options()
     
    409419//                  po::value < RealSpaceMatrixValue >()->default_value(boost::lexical_cast<BoxValue>(currentOption->getDefaultValue().c_str())) :
    410420                  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(),
    431421                  currentOption->getDescription().c_str())
    432422        ;
Note: See TracChangeset for help on using the changeset viewer.