Skip to content
Snippets Groups Projects
Commit 577ddad0 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

update help for cli

parent d28d44ce
No related branches found
No related tags found
No related merge requests found
......@@ -20,28 +20,31 @@ public:
 
if ( command == "execute" ) {
std::cout << "Execute command executes statements and either prints the result or writes the result to a file" << std::endl;
std::cout << "The qualification of the type of the result is remembered and when connecting statements together the compatibility with respective param is checked." << std::endl;
std::cout << "It is possible to use ^ symbol to move the result value of a statement to a parameter of another statement." << std::endl;
std::cout << "" << std::endl;
std::cout << "statement_list:" << std::endl;
std::cout << "statement ( | statement )* - at least one statement followed by a pipe separated sequence of other statements" << std::endl;
std::cout << "" << std::endl;
std::cout << "param:" << std::endl;
std::cout << "- - a value from the previous result (PreviousResultParam)" << std::endl;
std::cout << "<( statement_list ) - a statement list serving as a param (StatementParam)" << std::endl;
std::cout << "( type ) param - a casted parameter, type is an immediate value (CastParam)" << std::endl;
std::cout << "( #type ) param - a casted parameter, type identified by an environment variable (CastParam)" << std::endl;
std::cout << "[^] - - a value from the previous result (PreviousResultParam)" << std::endl;
std::cout << "[^] <( statement_list ) - a statement list serving as a param (StatementParam)" << std::endl;
std::cout << "[^] ( type ) param - a casted parameter, type is an immediate value (CastParam)" << std::endl;
std::cout << "[^] ( #type ) param - a casted parameter, type identified by an environment variable (CastParam)" << std::endl;
std::cout << "" << std::endl;
std::cout << "identifier - a string param - the value is a immediate string (ImmediateParam)" << std::endl;
std::cout << "number - a number param - the value is a immediate integer (ImmediateParam)" << std::endl;
std::cout << "#identifier - a string param - identified by an environment variable (ValueParam)" << std::endl;
std::cout << "$identifier - a value from a variable, identifier is an immediate value (VariableParam)" << std::endl;
std::cout << "$#identifier - a value from a variable, identified by an environment variable (VariableParam)" << std::endl;
std::cout << "[^] $identifier - a value from a variable, identifier is an immediate value (VariableParam)" << std::endl;
std::cout << "[^] $#identifier - a value from a variable, identified by an environment variable (VariableParam)" << std::endl;
std::cout << "" << std::endl;
std::cout << "<identifier - a value from a xml file, identifier is an immediate value (FileParam)" << std::endl;
std::cout << "<#identifier - a value from a xml file, identified by an environment variable (FileParam)" << std::endl;
std::cout << "" << std::endl;
std::cout << "statement:" << std::endl;
std::cout << "name ( param )* output_spec - a statement with params, name is an immediate value (SingleStatement)" << std::endl;
std::cout << "( type ) statement - the result of a statement is casted, type is an immediate value (CastedStatement)" << std::endl;
std::cout << "( #type ) statement - the result of a statement is casted, type indentified by an environment variable (CastedStatement)" << std::endl;
std::cout << "( type ) [^] statement - the result of a statement is casted, type is an immediate value (CastedStatement)" << std::endl;
std::cout << "( #type ) [^] statement - the result of a statement is casted, type indentified by an environment variable (CastedStatement)" << std::endl;
std::cout << "" << std::endl;
std::cout << "#identifier - an immediate value from an environment (ValueStatement)" << std::endl;
std::cout << "$identifier - a value from a variable, identifier is an immediate value (VariableStatement)" << std::endl;
......
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