MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / normaliseOpt

Function normaliseOpt

Bcore/src/main/cpp/Dobby/tests/catch.hpp:5945–5952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5943};
5944
5945inline auto normaliseOpt(std::string const &optName) -> std::string {
5946#ifdef CATCH_PLATFORM_WINDOWS
5947 if (optName[0] == '/')
5948 return "-" + optName.substr(1);
5949 else
5950#endif
5951 return optName;
5952}
5953
5954class Opt : public ParserRefImpl<Opt> {
5955protected:

Callers 1

isMatchMethod · 0.85

Calls 1

substrMethod · 0.45

Tested by

no test coverage detected