10 #ifndef vtk_m_cont_internal_OptionParserArguments_h
11 #define vtk_m_cont_internal_OptionParserArguments_h
42 struct VtkmArg :
public option::Arg
44 static option::ArgStatus Required(
const option::Option& option,
bool msg)
46 if (option.arg ==
nullptr)
51 "Missing argument after option '"
52 << std::string(option.name,
static_cast<size_t>(option.namelen))
55 return option::ARG_ILLEGAL;
59 return option::ARG_OK;
65 static option::ArgStatus UnknownOption(
const option::Option& option,
bool msg)
68 if (option.arg ==
nullptr)
70 return option::ARG_NONE;
76 if (option::Arg::Optional(option, msg) == option::ARG_OK)
78 return option::ARG_OK;
84 if (option.arg[0] ==
'-')
86 return option::ARG_NONE;
90 return option::ARG_OK;
100 #endif // vtk_m_cont_internal_OptionParserArguments_h