MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / exists

Method exists

src/client/sarge.cpp:152–160  ·  view source on GitHub ↗

--- EXISTS --- Returns whether the flag was found.

Source from the content-addressed store, hash-verified

150// --- EXISTS ---
151// Returns whether the flag was found.
152bool Sarge::exists(std::string arg_flag) {
153 if (!parsed) { return false; }
154
155 std::map<std::string, Argument*>::const_iterator it = argNames.find(arg_flag);
156 if (it == argNames.end()) { return false; }
157 if (!it->second->parsed) { return false; }
158
159 return true;
160}
161
162
163// --- GET TEXT ARGUMENT ---

Callers 3

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 2

mainFunction · 0.36
mainFunction · 0.36