return GetMinArguments();
}
+bool CLICommand::IsHidden(void) const
+{
+ return false;
+}
+
boost::mutex& CLICommand::GetRegistryMutex(void)
{
static boost::mutex mtx;
BOOST_FOREACH(const CLIKeyValue& kv, GetRegistry()) {
const std::vector<String>& vname = kv.first;
- if (vname.size() < best_match.size())
+ if (vname.size() < best_match.size() || kv.second->IsHidden())
continue;
bool match = true;
virtual String GetShortDescription(void) const = 0;
virtual int GetMinArguments(void) const;
virtual int GetMaxArguments(void) const;
+ virtual bool IsHidden(void) const;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const;
virtual ImpersonationLevel GetImpersonationLevel(void) const;