MCPcopy Create free account
hub / github.com/SpacehuhnTech/SimpleCLI / getType

Method getType

src/Argument.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95ArgumentType Argument::getType() const {
96 if (argPointer) {
97 if (argPointer->mode == ARG_DEFAULT) return ArgumentType::NORMAL;
98 if (argPointer->mode == ARG_POS) return ArgumentType::POSITIONAL;
99 if (argPointer->mode == ARG_FLAG) return ArgumentType::FLAG;
100 }
101 return ArgumentType::NORMAL;
102}
103
104String Argument::toString() const {
105 String s;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected