MCPcopy Create free account
hub / github.com/FidoProject/Fido / parseInto

Method parseInto

tests/catch.h:4491–4501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4489 }
4490
4491 std::vector<Parser::Token> parseInto( int argc, char const* argv[], ConfigT& config ) const {
4492 std::string processName = argv[0];
4493 std::size_t lastSlash = processName.find_last_of( "/\\" );
4494 if( lastSlash != std::string::npos )
4495 processName = processName.substr( lastSlash+1 );
4496 m_boundProcessName.set( config, processName );
4497 std::vector<Parser::Token> tokens;
4498 Parser parser;
4499 parser.parseIntoTokens( argc, argv, tokens );
4500 return populate( tokens, config );
4501 }
4502
4503 std::vector<Parser::Token> populate( std::vector<Parser::Token> const& tokens, ConfigT& config ) const {
4504 validate();

Callers 1

applyCommandLineMethod · 0.80

Calls 2

parseIntoTokensMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected