Issue 14887: pysetup: unfriendly error message for unknown commands (original) (raw)
The pysetup3 command gives a fairly unfriendly error message with python traceback when you specify an unknown command:
pysetup3 instal Unrecognized action "instal" Traceback (most recent call last): File "/Library/Frameworks/PythonDev.framework/Versions/3.3/lib/python3.3/packaging/run.py", line 647, in main dispatcher = Dispatcher(args) File "/Library/Frameworks/PythonDev.framework/Versions/3.3/lib/python3.3/packaging/run.py", line 401, in init raise PackagingArgError(msg) packaging.errors.PackagingArgError: Unrecognized action "instal"
The traceback is not useful for the user of the script and should therefore not be shown.
BTW. It would also be nice if 'pysetup3 help' would give the same output as 'pysetup3 --help', similar to how 'hg help' behaves.