diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 08:29:31 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 08:29:31 +0000 |
commit | 7d44c7ee8fee7bc6f401c47b5268778500b25558 (patch) | |
tree | 94fcb8e978f198e8108c2ba82ff43018e41bd259 /sca-cpp/trunk/modules/python/python-shell.cpp | |
parent | c2add2e09088fc3640d2ad784ddfd56d1ad75f7b (diff) |
Cleaned up python support code, removed unused functions.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897787 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/python/python-shell.cpp')
-rw-r--r-- | sca-cpp/trunk/modules/python/python-shell.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/python/python-shell.cpp b/sca-cpp/trunk/modules/python/python-shell.cpp index 862ca6062f..89b47b8d44 100644 --- a/sca-cpp/trunk/modules/python/python-shell.cpp +++ b/sca-cpp/trunk/modules/python/python-shell.cpp @@ -31,9 +31,9 @@ int main(const int argc, char** argv) { tuscany::gc_scoped_pool pool; - if (argc == 1) { - tuscany::python::evalDriverRun(tuscany::cin, tuscany::cout); - return 0; + if (argc != 2) { + tuscany::cerr << "Usage: python-shell <script.py>" << tuscany::endl; + return 1; } tuscany::python::evalDriverRun(argv[1], tuscany::cin, tuscany::cout); return 0; |