Skip to content
Snippets Groups Projects
Unverified Commit fb3a363e 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 46a55f73
No related branches found
No related tags found
1 merge request!239WIP: Webui version
......@@ -121,7 +121,10 @@ std::unique_ptr < Arg > Parser::optional_arg ( ) {
 
std::unique_ptr < Arg > Parser::template_arg ( ) {
match ( cli::Lexer::TokenType::AT_SIGN );
return arg ( );
if ( check ( cli::Lexer::TokenType::STRING ) )
return std::make_unique < ImmediateArg > ( matchString ( ) );
else
return arg ( );
}
 
std::unique_ptr < Arg > Parser::optional_variable ( ) {
......
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