MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / isLongOption

Method isLongOption

src/OpenLoco/src/CommandLine.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 std::string _errorMessage;
45
46 static bool isLongOption(std::string_view arg)
47 {
48 if (arg.size() >= 3 && arg[0] == '-' && arg[1] == '-')
49 {
50 return true;
51 }
52 return false;
53 }
54
55 static bool isShortOption(std::string_view arg)
56 {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected