26 #ifndef NFD_TOOLS_NFDC_COMMAND_DEFINITION_HPP
27 #define NFD_TOOLS_NFDC_COMMAND_DEFINITION_HPP
134 class Error :
public std::invalid_argument
137 using std::invalid_argument::invalid_argument;
187 const std::string& metavar =
"");
195 parse(
const std::vector<std::string>& tokens,
size_t start = 0)
const;
199 parseValue(
ArgValueType valueType,
const std::string& token);
202 const std::string m_noun;
203 const std::string m_verb;
213 std::map<std::string, Arg> m_args;
214 std::set<std::string> m_requiredArgs;
215 std::vector<std::string> m_positionalArgs;