Cli: Don't suggest '--import' on 'repository <type> remove'

refs #7255
This commit is contained in:
Michael Friedrich 2014-10-28 12:08:31 +01:00
parent 3dc2f82345
commit 2db549d976
1 changed files with 4 additions and 2 deletions

View File

@ -119,8 +119,10 @@ String RepositoryObjectCommand::GetShortDescription(void) const
void RepositoryObjectCommand::InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const
{
if (m_Command == RepositoryCommandAdd) {
visibleDesc.add_options()
("import", po::value<std::vector<std::string> >(), "Import the defined template(s) into the object. Must be defined and included separately in Icinga 2");
}
}
std::vector<String> RepositoryObjectCommand::GetPositionalSuggestions(const String& word) const