--- a/java/sql-dk/src/main/java/info/globalcode/sql/dk/CLIParser.java Tue Mar 05 21:22:33 2019 +0100
+++ b/java/sql-dk/src/main/java/info/globalcode/sql/dk/CLIParser.java Tue Mar 05 22:03:02 2019 +0100
@@ -28,9 +28,8 @@
import java.util.Map;
/**
- * Converts command line arguments from String array to object.
- * Checks basic constraints (if only supported options are used and if they have correct number of
- * parameters)
+ * Converts command line arguments from String array to object. Checks basic constraints (if only
+ * supported options are used and if they have correct number of parameters)
*
* @author Ing. František Kučera (frantovo.cz)
*/
@@ -111,6 +110,9 @@
options.addNamedParameter(new NamedParameter(paramName, paramValue, namedTypes.get(paramName)));
}
break;
+ case Tokens.RELATION:
+ options.addRelationName(fetchNext(args, ++i));
+ break;
case Tokens.FORMATTER:
options.setFormatterName(fetchNext(args, ++i));
break;
@@ -187,6 +189,7 @@
public static final String NAME_PREFIX = "--name-prefix"; // bash-completion:option // help: parameter name prefix – regular expression
public static final String NAME_SUFFIX = "--name-suffix"; // bash-completion:option // help: parameter name suffix – regular expression
public static final String TYPES = "--types"; // bash-completion:option // help: comma separated list of parameter types
+ public static final String RELATION = "--relation"; // bash-completion:option // help: name of the output relation (result set)
public static final String FORMATTER = "--formatter"; // bash-completion:option // help: name of the output formatter
public static final String FORMATTER_PROPERTY = "--formatter-property"; // bash-completion:option // help: name and value
public static final String INFO_HELP = "--help"; // bash-completion:option // help: print this help