diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-08 00:24:59 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-08 00:24:59 (GMT) |
commit | 8daf2ea0a7192e556cc059c2220469ea22155380 (patch) | |
tree | 20494f647dad5dbea56f9c0a5b7241d1e9e3c7f7 /test/src | |
parent | 3a8a7a56ab604c3cca49792973c8b0c6d8a089b9 (diff) | |
download | uscxml-8daf2ea0a7192e556cc059c2220469ea22155380.zip uscxml-8daf2ea0a7192e556cc059c2220469ea22155380.tar.gz uscxml-8daf2ea0a7192e556cc059c2220469ea22155380.tar.bz2 |
More fixes for MSVC
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/test-w3c.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/test/src/test-w3c.cpp b/test/src/test-w3c.cpp index e89ab2c..94cafa4 100644 --- a/test/src/test-w3c.cpp +++ b/test/src/test-w3c.cpp @@ -123,32 +123,12 @@ int main(int argc, char** argv) { google::InitGoogleLogging(argv[0]); google::LogToStderr(); -#ifndef _WIN32 - opterr = 0; -#endif - int option; - while ((option = getopt(argc, argv, "vl:p:")) != -1) { - switch(option) { - case 'l': - google::InitGoogleLogging(optarg); - break; - case 'p': - uscxml::Factory::pluginPath = optarg; - break; - case '?': - break; - default: - printUsageAndExit(); - break; - } - } - // for (int i = 0; i < argc; i++) // std::cout << argv[i] << std::endl; // std::cout << optind << std::endl; - LOG(INFO) << "Processing " << argv[optind]; - Interpreter interpreter = Interpreter::fromURI(argv[optind]); + LOG(INFO) << "Processing " << argv[1]; + Interpreter interpreter = Interpreter::fromURI(argv[1]); if (interpreter) { // interpreter.setCmdLineOptions(argc, argv); // interpreter->setCapabilities(Interpreter::CAN_NOTHING); |