c++/sql-dk/CLIStarter.cpp
author František Kučera <franta-hg@frantovo.cz>
Tue, 30 Apr 2019 20:04:06 +0200
branchv_0
changeset 249 7655df0622ee
parent 232 4061e0c7f907
child 250 aae5009bd0af
permissions -rw-r--r--
change XMLNS for the configuration Use The 'tag' URI Scheme <http://www.faqs.org/rfcs/rfc4151.html> Upgrade local configuration: sed 's@https://sql-dk.globalcode.info/xmlns/configuration@tag:globalcode.info,2018:sqldk/configuration@g' -i ~/.sql-dk/config.xml

/**
 * SQL-DK
 * Copyright © 2018 František Kučera (frantovo.cz)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char* argv[]) {

	for (int i = 0; i < argc; i++) {
		auto arg = string(argv[i]);
		wcout << arg.c_str() << endl;
		if (arg == "--batch") {
			wcout << "BATCH !!!" << endl;
		}
	}


	return 0;
}