Skip to content
Snippets Groups Projects
Commit 74ff9155 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Adding more info in command-line help (default status and values)

parent 29f38ad0
Branches
Tags
No related merge requests found
...@@ -757,6 +757,30 @@ std::string CommandLineLauncher::DisplayParameterHelp(const Parameter::Pointer & ...@@ -757,6 +757,30 @@ std::string CommandLineLauncher::DisplayParameterHelp(const Parameter::Pointer &
oss << "]"; oss << "]";
} }
if(m_Application->IsMandatory(paramKey))
{
oss<<" (mandatory";
}
else
{
oss<<" (optional";
if(m_Application->IsParameterEnabled(paramKey))
{
oss<<", on by default";
}
else
{
oss<<", off by default";
}
}
if(m_Application->HasValue(paramKey))
{
oss<<", default value is "<<m_Application->GetParameterAsString(paramKey);
}
oss<<")";
oss << std::endl; oss << std::endl;
return oss.str(); return oss.str();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment