src/MICmdBase.cpp
bool CMICmdBase::ParseValidateCmdOptions() {
  CMICmdArgContext argCntxt(m_cmdData.strMiCmdOption);
  if (m_setCmdArgs.Validate(m_cmdData.strMiCmd, argCntxt))
    return MIstatus::success;

  SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_ARGS),
                                 m_cmdData.strMiCmd.c_str(),
                                 m_setCmdArgs.GetErrorDescription().c_str()));

  return MIstatus::failure;
}
//++
// Details: Having previously given CMICmdArgSet m_setCmdArgs all the argument
// or option
//          definitions for the command to handle proceed to parse and validate
//          the
//          command's options text for those arguments and extract the values
//          for each if
//          any.
// Type:    Method.
// Args:    None.
// Return:  MIstatus::success - Functional succeeded.
//          MIstatus::failure - Functional failed.
// Throws:  None.
//--
Having previously given CMICmdArgSet m_setCmdArgs all the argument
or option
definitions for the command to handle proceed to parse and validate
the
command's options text for those arguments and extract the values
for each if
any.
Type:    Method.
Args:    None.
Return:  MIstatus::success - Functional succeeded.
MIstatus::failure - Functional failed.
Throws:  None.
Having previously given CMICmdArgSet m_setCmdArgs all the argument or option definitions for the command to handle proceed to parse and validate the command ' s options text for those arguments and extract the values for each if any . Type : Method . Args : None . Return : MIstatus :: success - Functional succeeded . MIstatus :: failure - Functional failed . Throws : None .
bool CMICmdBase::ParseValidateCmdOptions() {
  CMICmdArgContext argCntxt(m_cmdData.strMiCmdOption);
  if (m_setCmdArgs.Validate(m_cmdData.strMiCmd, argCntxt))
    return MIstatus::success;
  SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_ARGS),
                                 m_cmdData.strMiCmd.c_str(),
                                 m_setCmdArgs.GetErrorDescription().c_str()));
  return MIstatus::failure;
}
bool CMICmdBase :: ParseValidateCmdOptions ( ) { CMICmdArgContext argCntxt ( m_cmdData . strMiCmdOption ) ; if ( m_setCmdArgs . Validate ( m_cmdData . strMiCmd , argCntxt ) ) return MIstatus :: success ; SetError ( CMIUtilString :: Format ( MIRSRC ( IDS_CMD_ERR_ARGS ) , m_cmdData . strMiCmd . c_str ( ) , m_setCmdArgs . GetErrorDescription ( ) . c_str ( ) ) ) ; return MIstatus :: failure ; }
++
Details: Having previously given CMICmdArgSet m_setCmdArgs all the argument
or option
definitions for the command to handle proceed to parse and validate
the
command's options text for those arguments and extract the values
for each if
any.
++ Details : Having previously given CMICmdArgSet m_setCmdArgs all the argument or option definitions for the command to handle proceed to parse and validate the command ' s options text for those arguments and extract the values for each if any .