MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / cliCommandIndex

Function cliCommandIndex

Source/Basic/Application.cpp:132–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132int cliCommandIndex(int argc, char* argv[]) {
133 for (int i = 1; i < argc; i++) {
134 if (!argv[i]) continue;
135 std::string_view arg(argv[i]);
136 if (arg == "cli") {
137 return i;
138 }
139 if (arg == "--asset") {
140 if (i + 1 < argc) i++;
141 continue;
142 }
143 if (arg.rfind("--asset=", 0) == 0) {
144 continue;
145 }
146 break;
147 }
148 return -1;
149}
150
151struct CliAssetArgument {
152 std::optional<fs::path> path;

Callers 1

runCliApplicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected