THRIFT-217. Use "--gen py" instead of "-py" in build scripts


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@722333 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/FastbinaryTest.py b/test/FastbinaryTest.py
index b27612b..04b3e44 100755
--- a/test/FastbinaryTest.py
+++ b/test/FastbinaryTest.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 r"""
-thrift -py DebugProtoTest.thrift
+thrift --gen py DebugProtoTest.thrift
 ./FastbinaryTest.py
 """
 
diff --git a/test/py/Makefile.am b/test/py/Makefile.am
index 9155179..252f586 100644
--- a/test/py/Makefile.am
+++ b/test/py/Makefile.am
@@ -21,7 +21,7 @@
 
 
 gen-py/ThriftTest/__init__.py: ../ThriftTest.thrift
-	$(THRIFT) -py $<
+	$(THRIFT) --gen py $<
 
 clean-local:
 	$(RM) -r gen-py
diff --git a/test/py/explicit_module/runtest.sh b/test/py/explicit_module/runtest.sh
index 8659210..a2b07d2 100755
--- a/test/py/explicit_module/runtest.sh
+++ b/test/py/explicit_module/runtest.sh
@@ -1,13 +1,13 @@
 #!/bin/bash
 
 rm -rf gen-py
-../../../compiler/cpp/thrift -py test1.thrift || exit 1
-../../../compiler/cpp/thrift -py test2.thrift || exit 1
+../../../compiler/cpp/thrift --gen py test1.thrift || exit 1
+../../../compiler/cpp/thrift --gen py test2.thrift || exit 1
 PYTHONPATH=./gen-py python -c 'import foo.bar.baz' || exit 1
 PYTHONPATH=./gen-py python -c 'import test2' || exit 1
 PYTHONPATH=./gen-py python -c 'import test1' &>/dev/null && exit 1  # Should fail.
 cp -r gen-py simple
-../../../compiler/cpp/thrift -r -py test2.thrift || exit 1
+../../../compiler/cpp/thrift -r --gen py test2.thrift || exit 1
 PYTHONPATH=./gen-py python -c 'import test2' || exit 1
 diff -ur simple gen-py > thediffs
 file thediffs | grep -s -q empty || exit 1
diff --git a/test/threads/Makefile b/test/threads/Makefile
index 59eb4f2..fb133a0 100644
--- a/test/threads/Makefile
+++ b/test/threads/Makefile
@@ -37,7 +37,7 @@
 all: server client
 
 stubs: ThreadsTest.thrift
-	$(THRIFT) -cpp -py ThreadsTest.thrift
+	$(THRIFT) --gen cpp --gen py ThreadsTest.thrift
 
 server: stubs
 	g++ -o ThreadsServer $(CFL) ThreadsServer.cpp ./gen-cpp/ThreadsTest.cpp ./gen-cpp/ThreadsTest_types.cpp