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 2324061e0c7f907
parent 231 71439ecbe71f
child 233 0fb3b92e01c5
c++: recognize batch mode
.hgignore
c++/sql-dk/CLIStarter.cpp
     1.1 --- a/.hgignore	Tue Feb 26 15:47:43 2019 +0100
     1.2 +++ b/.hgignore	Tue Feb 26 15:49:57 2019 +0100
     1.3 @@ -12,6 +12,10 @@
     1.4  ^java/[^/]+/build/
     1.5  ^java/[^/]+/nbproject/private/
     1.6  
     1.7 +^c\+\+/[^/]+/dist/
     1.8 +^c\+\+/[^/]+/build/
     1.9 +^c\+\+/[^/]+/nbproject/private/
    1.10 +
    1.11  ^distributions/debian/.*\.deb$
    1.12  ^distributions/src/.*\.tar\.gz$
    1.13  
     2.1 --- a/c++/sql-dk/CLIStarter.cpp	Tue Feb 26 15:47:43 2019 +0100
     2.2 +++ b/c++/sql-dk/CLIStarter.cpp	Tue Feb 26 15:49:57 2019 +0100
     2.3 @@ -24,8 +24,11 @@
     2.4  int main(int argc, char* argv[]) {
     2.5  
     2.6  	for (int i = 0; i < argc; i++) {
     2.7 -		auto arg = argv[i];
     2.8 -		wcout << arg << endl;
     2.9 +		auto arg = string(argv[i]);
    2.10 +		wcout << arg.c_str() << endl;
    2.11 +		if (arg == "--batch") {
    2.12 +			wcout << "BATCH !!!" << endl;
    2.13 +		}
    2.14  	}
    2.15  
    2.16