diff options
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; |