Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
2329a83
)
I lied before, now thrift really supports single or double dashes
author
Mark Slee
<mcslee@apache.org>
Fri, 10 Nov 2006 22:32:07 +0000
(22:32 +0000)
committer
Mark Slee
<mcslee@apache.org>
Fri, 10 Nov 2006 22:32:07 +0000
(22:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664870
13f79535
-47bb-0310-9956-
ffa450edef68
compiler/cpp/src/main.cc
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/main.cc
b/compiler/cpp/src/main.cc
index
e329579
..
005ce59
100644
(file)
--- a/
compiler/cpp/src/main.cc
+++ b/
compiler/cpp/src/main.cc
@@
-428,7
+428,7
@@
int main(int argc, char** argv) {
arg = strtok(argv[i], " ");
while (arg != NULL) {
// Treat double dashes as single dashes
- if (
false && arg[0
] == '-') {
+ if (
arg[0] == '-' && arg[1
] == '-') {
++arg;
}