classification
Title: pysetup: unfriendly error message for unknown commands
Type: behavior Stage: resolved
Components: Distutils2 Versions: Python 3.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Don't print traceback for unrecognized actions, commands and options in packaging
View: 13399
Assigned To: eric.araujo Nosy List: alexis, eric.araujo, ronaldoussoren, tarek
Priority: low Keywords:

Created on 2012-05-23 09:38 by ronaldoussoren, last changed 2012-05-23 14:39 by eric.araujo. This issue is now closed.

Messages (2)
msg161396 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2012-05-23 09:38
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.
msg161413 - (view) Author: √Čric Araujo (eric.araujo) * (Python committer) Date: 2012-05-23 14:39
Already reported, fixed in distutils2 and to be sideported to packaging soon.
History
Date User Action Args
2012-05-23 14:39:21eric.araujosetstatus: open -> closed
superseder: Don't print traceback for unrecognized actions, commands and options in packaging
messages: + msg161413

resolution: duplicate
stage: needs patch -> resolved
2012-05-23 09:38:50ronaldoussorencreate