Skip to content
Snippets Groups Projects
Commit c51ed166 authored by Jan Trávníček's avatar Jan Trávníček Committed by Tomáš Pecka
Browse files

cli: allow string template argument in cli

closes #228
parent e2440bb2
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,8 @@ std::unique_ptr < Arg > Parser::arg ( ) {
std::string value = getTokenValue ( );
match ( cli::Lexer::TokenType::UNSIGNED, cli::Lexer::TokenType::IDENTIFIER );
return std::make_unique < BindedArg > ( std::move ( value ) );
} else if ( check ( cli::Lexer::TokenType::STRING ) ) {
return std::make_unique < ImmediateArg > ( matchString ( ) );
} else {
std::string value = matchIdentifier ( );
return std::make_unique < ImmediateArg > ( value );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment