Commit 1bffbe47 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: handle BoolParameter in CommandLine

No related merge requests found
Showing with 3 additions and 2 deletions
+3 -2
...@@ -435,7 +435,8 @@ CommandLineLauncher::ParamResultType CommandLineLauncher::LoadParameters() ...@@ -435,7 +435,8 @@ CommandLineLauncher::ParamResultType CommandLineLauncher::LoadParameters()
type == ParameterType_InputVectorData || type == ParameterType_InputVectorData ||
type == ParameterType_OutputVectorData || type == ParameterType_OutputVectorData ||
type == ParameterType_RAM || type == ParameterType_RAM ||
type == ParameterType_OutputProcessXML) // || type == ParameterType_InputProcessXML) type == ParameterType_OutputProcessXML ||
type == ParameterType_Bool) // || type == ParameterType_InputProcessXML)
{ {
// Single value parameter // Single value parameter
m_Application->SetParameterString(paramKey, values[0]); m_Application->SetParameterString(paramKey, values[0]);
...@@ -686,7 +687,7 @@ std::string CommandLineLauncher::DisplayParameterHelp(const Parameter::Pointer & ...@@ -686,7 +687,7 @@ std::string CommandLineLauncher::DisplayParameterHelp(const Parameter::Pointer &
{ {
oss << "<int32> "; oss << "<int32> ";
} }
else if (type == ParameterType_Empty ) else if (type == ParameterType_Empty || type == ParameterType_Bool)
{ {
oss << "<boolean> "; oss << "<boolean> ";
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment