commit | 52cb2234de60a870a89e111e7d9adaf37f9aa1bd | [log] [tgz] |
---|---|---|
author | Mark Slee <mcslee@apache.org> | Fri Nov 10 22:32:07 2006 +0000 |
committer | Mark Slee <mcslee@apache.org> | Fri Nov 10 22:32:07 2006 +0000 |
tree | 51f79bbf63820fd92ddd511bf6e6537e20d4c5e5 | |
parent | 2329a83701f703a26894c1fcf1bf096db77a0e88 [diff] [blame] |
I lied before, now thrift really supports single or double dashes git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664870 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc index e329579..005ce59 100644 --- a/compiler/cpp/src/main.cc +++ b/compiler/cpp/src/main.cc
@@ -428,7 +428,7 @@ arg = strtok(argv[i], " "); while (arg != NULL) { // Treat double dashes as single dashes - if (false && arg[0] == '-') { + if (arg[0] == '-' && arg[1] == '-') { ++arg; }