c++/sql-dk/CLIStarter.cpp
author František Kučera <franta-hg@frantovo.cz>
Sun, 13 Sep 2020 12:01:35 +0200
branchv_0
changeset 253 d8442b266ca8
parent 250 aae5009bd0af
permissions -rw-r--r--
combatibility with Java 9+, Tested with Java 11; JAXB library
franta-hg@230
     1
/**
franta-hg@230
     2
 * SQL-DK
franta-hg@230
     3
 * Copyright © 2018 František Kučera (frantovo.cz)
franta-hg@230
     4
 *
franta-hg@230
     5
 * This program is free software: you can redistribute it and/or modify
franta-hg@230
     6
 * it under the terms of the GNU General Public License as published by
franta-hg@250
     7
 * the Free Software Foundation, version 3 of the License.
franta-hg@230
     8
 *
franta-hg@230
     9
 * This program is distributed in the hope that it will be useful,
franta-hg@230
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@230
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@230
    12
 * GNU General Public License for more details.
franta-hg@230
    13
 *
franta-hg@230
    14
 * You should have received a copy of the GNU General Public License
franta-hg@230
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@230
    16
 */
franta-hg@230
    17
franta-hg@230
    18
#include <cstdlib>
franta-hg@230
    19
#include <iostream>
franta-hg@230
    20
franta-hg@230
    21
using namespace std;
franta-hg@230
    22
franta-hg@230
    23
int main(int argc, char* argv[]) {
franta-hg@230
    24
franta-hg@230
    25
	for (int i = 0; i < argc; i++) {
franta-hg@232
    26
		auto arg = string(argv[i]);
franta-hg@232
    27
		wcout << arg.c_str() << endl;
franta-hg@232
    28
		if (arg == "--batch") {
franta-hg@232
    29
			wcout << "BATCH !!!" << endl;
franta-hg@232
    30
		}
franta-hg@230
    31
	}
franta-hg@230
    32
franta-hg@230
    33
franta-hg@230
    34
	return 0;
franta-hg@230
    35
}
franta-hg@230
    36