Lines Matching refs:optName
4263 friend void addOptName( Arg& arg, std::string const& optName ) in addOptName() argument
4265 if( optName.empty() ) in addOptName()
4267 if( Detail::startsWith( optName, "--" ) ) { in addOptName()
4272 + optName + "'" ); in addOptName()
4273 arg.longName = optName.substr( 2 ); in addOptName()
4275 else if( Detail::startsWith( optName, "-" ) ) in addOptName()
4276 arg.shortNames.push_back( optName.substr( 1 ) ); in addOptName()
4278 … throw std::logic_error( "option must begin with - or --. Option was: '" + optName + "'" ); in addOptName()
4351 OptBuilder& operator[]( std::string const& optName ) { in operator []() argument
4352 addOptName( *ArgBuilder::m_arg, optName ); in operator []()
4380 OptBuilder operator[]( std::string const& optName ) { in operator []() argument
4382 addOptName( m_options.back(), optName ); in operator []()