src/CLIParser.h
author František Kučera <franta-hg@frantovo.cz>
Tue, 22 Oct 2019 22:03:24 +0200
branchv_0
changeset 26 421608ecc12a
parent 23 6ee7a9e311e9
permissions -rw-r--r--
fix license version: GNU GPLv3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * Relational pipes
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
26
421608ecc12a fix license version: GNU GPLv3
František Kučera <franta-hg@frantovo.cz>
parents: 23
diff changeset
     7
 * the Free Software Foundation, version 3 of the License.
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 *
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * GNU General Public License for more details.
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 *
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 */
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
#pragma once
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
#include <vector>
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
#include <relpipe/writer/typedefs.h>
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
#include <relpipe/cli/CLI.h>
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
#include <relpipe/cli/RelpipeCLIException.h>
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
#include "Configuration.h"
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
namespace relpipe {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
namespace tr {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
namespace guile {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
class CLIParser {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
private:
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
12
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    34
	// FIXME: move common methods/classes to relpipe-lib-cli or relpipe-lib-helper
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
	string_t readNext(std::vector<string_t> arguments, int& i) {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
		if (i < arguments.size()) return arguments[i++];
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
		else throw relpipe::cli::RelpipeCLIException(L"Missing CLI argument" + (i > 0 ? (L" after " + arguments[i - 1]) : L""), relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
	}
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
	void addRelation(Configuration& c, RelationConfiguration& currentRelation) {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    42
		if (currentRelation.relation.size()) {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    43
			c.relationConfigurations.push_back(currentRelation);
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    44
			currentRelation = RelationConfiguration();
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    45
		}
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    46
	}
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    47
12
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    48
	relpipe::writer::TypeId parseTypeId(const string_t& value) {
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    49
		using t = relpipe::writer::TypeId;
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    50
		if (value == L"string") return t::STRING;
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    51
		else if (value == L"integer") return t::INTEGER;
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    52
		else if (value == L"boolean") return t::BOOLEAN;
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    53
		else throw relpipe::cli::RelpipeCLIException(L"Unable to parse TypeId: " + value, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    54
	}
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    55
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    56
public:
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    57
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    58
	static const string_t OPTION_RELATION;
12
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    59
	static const string_t OPTION_OUTPUT_ATTRIBUTE;
15
051e58022783 add --input-attributes-append and --input-attributes-prepend for adding attributes using --output-attribute instead of replacing whole attribute list
František Kučera <franta-hg@frantovo.cz>
parents: 14
diff changeset
    60
	static const string_t OPTION_INPUT_ATTRIBUTES_APPEND;
051e58022783 add --input-attributes-append and --input-attributes-prepend for adding attributes using --output-attribute instead of replacing whole attribute list
František Kučera <franta-hg@frantovo.cz>
parents: 14
diff changeset
    61
	static const string_t OPTION_INPUT_ATTRIBUTES_PREPEND;
23
6ee7a9e311e9 add option: --debug-variable-mapping + different variables for attributes with ambiguous names
František Kučera <franta-hg@frantovo.cz>
parents: 22
diff changeset
    62
	static const string_t OPTION_DEBUG_VARIABLE_MAPPING;
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    63
	static const string_t OPTION_BEFORE_RECORDS;
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    64
	static const string_t OPTION_AFTER_RECORDS;
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    65
	static const string_t OPTION_FOR_EACH;
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    66
	static const string_t OPTION_WHERE;
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    67
	static const string_t OPTION_DROP;
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    68
	static const string_t OPTION_DEFINE;
16
2dcc22b7a424 add --has-more-records and allow adding more records dynamically in Guile
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    69
	static const string_t OPTION_HAS_MORE_RECORDS;
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    70
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    71
	Configuration parse(const std::vector<string_t>& arguments) {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    72
		Configuration c;
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    73
		RelationConfiguration currentRelation;
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    74
21
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    75
		for (int i = 0; i < arguments.size();) {
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    76
			string_t option = readNext(arguments, i);
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    77
21
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    78
			if (option == OPTION_BEFORE_RECORDS) currentRelation.guileBeforeRecords = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    79
			else if (option == OPTION_AFTER_RECORDS) currentRelation.guileAfterRecords = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    80
			else if (option == OPTION_FOR_EACH) currentRelation.guileForEach = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    81
			else if (option == OPTION_WHERE) currentRelation.guileWhere = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    82
			else if (option == OPTION_HAS_MORE_RECORDS) currentRelation.guileHasMoreRecords = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    83
			else if (option == OPTION_DROP) currentRelation.drop = true;
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    84
			else if (option == OPTION_INPUT_ATTRIBUTES_APPEND) currentRelation.inputAttributesAppend = true;
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    85
			else if (option == OPTION_INPUT_ATTRIBUTES_PREPEND) currentRelation.inputAttributesPrepend = true;
23
6ee7a9e311e9 add option: --debug-variable-mapping + different variables for attributes with ambiguous names
František Kučera <franta-hg@frantovo.cz>
parents: 22
diff changeset
    86
			else if (option == OPTION_DEBUG_VARIABLE_MAPPING) currentRelation.debugVariableMapping = true;
21
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    87
			else if (option == OPTION_RELATION) {
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    88
				addRelation(c, currentRelation); // previous relation
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    89
				currentRelation.relation = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    90
			} else if (option == OPTION_OUTPUT_ATTRIBUTE) {
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    91
				relpipe::writer::AttributeMetadata attribute;
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    92
				attribute.attributeName = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    93
				attribute.typeId = parseTypeId(readNext(arguments, i));
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    94
				currentRelation.writerMetadata.push_back(attribute);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    95
			} else if (option == OPTION_DEFINE) {
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    96
				DefinitionRecipe definition;
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    97
				definition.name = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    98
				definition.type = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    99
				definition.value = readNext(arguments, i);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
   100
				if (currentRelation.relation.size()) currentRelation.definitions.push_back(definition);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
   101
				else c.definitions.push_back(definition);
6486334a9f93 omit superfluous {}
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
   102
			} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   103
		}
22
d5e80f15d1f7 omit superfluous {} fixed
František Kučera <franta-hg@frantovo.cz>
parents: 21
diff changeset
   104
		addRelation(c, currentRelation); // last relation
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   105
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   106
		return c;
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   107
	}
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   108
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   109
	virtual ~CLIParser() {
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   110
	}
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   111
};
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   112
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   113
const string_t CLIParser::OPTION_RELATION = L"--relation";
12
7977c1bdba1f add --output-attribute so output relation can have different attributes than the input relation
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
   114
const string_t CLIParser::OPTION_OUTPUT_ATTRIBUTE = L"--output-attribute";
15
051e58022783 add --input-attributes-append and --input-attributes-prepend for adding attributes using --output-attribute instead of replacing whole attribute list
František Kučera <franta-hg@frantovo.cz>
parents: 14
diff changeset
   115
const string_t CLIParser::OPTION_INPUT_ATTRIBUTES_APPEND = L"--input-attributes-append";
051e58022783 add --input-attributes-append and --input-attributes-prepend for adding attributes using --output-attribute instead of replacing whole attribute list
František Kučera <franta-hg@frantovo.cz>
parents: 14
diff changeset
   116
const string_t CLIParser::OPTION_INPUT_ATTRIBUTES_PREPEND = L"--input-attributes-prepend";
23
6ee7a9e311e9 add option: --debug-variable-mapping + different variables for attributes with ambiguous names
František Kučera <franta-hg@frantovo.cz>
parents: 22
diff changeset
   117
const string_t CLIParser::OPTION_DEBUG_VARIABLE_MAPPING = L"--debug-variable-mapping";
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   118
const string_t CLIParser::OPTION_BEFORE_RECORDS = L"--before-records";
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   119
const string_t CLIParser::OPTION_AFTER_RECORDS = L"--after-records";
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   120
const string_t CLIParser::OPTION_FOR_EACH = L"--for-each";
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   121
const string_t CLIParser::OPTION_WHERE = L"--where";
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   122
const string_t CLIParser::OPTION_DROP = L"--drop";
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   123
const string_t CLIParser::OPTION_DEFINE = L"--define";
16
2dcc22b7a424 add --has-more-records and allow adding more records dynamically in Guile
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
   124
const string_t CLIParser::OPTION_HAS_MORE_RECORDS = L"--has-more-records";
6
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   125
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   126
}
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   127
}
4062b8436838 CLI parser: first version (only single relation is supported)
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   128
}