c++: recognize batch mode v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue, 26 Feb 2019 15:49:57 +0100
branchv_0
changeset 232 4061e0c7f907
parent 231 71439ecbe71f
child 233 0fb3b92e01c5
c++: recognize batch mode
.hgignore
c++/sql-dk/CLIStarter.cpp
--- a/.hgignore	Tue Feb 26 15:47:43 2019 +0100
+++ b/.hgignore	Tue Feb 26 15:49:57 2019 +0100
@@ -12,6 +12,10 @@
 ^java/[^/]+/build/
 ^java/[^/]+/nbproject/private/
 
+^c\+\+/[^/]+/dist/
+^c\+\+/[^/]+/build/
+^c\+\+/[^/]+/nbproject/private/
+
 ^distributions/debian/.*\.deb$
 ^distributions/src/.*\.tar\.gz$
 
--- a/c++/sql-dk/CLIStarter.cpp	Tue Feb 26 15:47:43 2019 +0100
+++ b/c++/sql-dk/CLIStarter.cpp	Tue Feb 26 15:49:57 2019 +0100
@@ -24,8 +24,11 @@
 int main(int argc, char* argv[]) {
 
 	for (int i = 0; i < argc; i++) {
-		auto arg = argv[i];
-		wcout << arg << endl;
+		auto arg = string(argv[i]);
+		wcout << arg.c_str() << endl;
+		if (arg == "--batch") {
+			wcout << "BATCH !!!" << endl;
+		}
 	}