[issue22642] trace module: unclear error message

2016-01-11 Thread Senthil Kumaran

Senthil Kumaran added the comment:

I reviewed the patch. It looks like the problem is not just with list functions 
but with other options too. Like.

$ ./python.exe -m trace -t
$ ./python.exe -m trace -c
$ ./python.exe -m trace -T

Will throw the same error. So, any changes should address all these cases 
instead of a single listfunctions (-l) case only.

--
nosy: +orsenthil

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22642] trace module: unclear error message

2016-01-11 Thread Senthil Kumaran

Senthil Kumaran added the comment:

@SilentGhost, I agree with you. I am making the change to use argparse as part 
of this issue24649. And this bug could be covered as part of the change to 
argparse.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22642] trace module: unclear error message

2016-01-11 Thread SilentGhost

SilentGhost added the comment:

I could submit a patch, but I'd switch over from getopt to argparse. I think 
this exactly the case when such a change is warranted.

--
nosy: +SilentGhost

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22642] trace module: unclear error message

2014-10-29 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Thanks, Berker Peksag, for the review. Here is the updated patch with the test.

--
Added file: http://bugs.python.org/file37068/better_err_listfuncs_trace_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22642
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22642] trace module: unclear error message

2014-10-19 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Here is the patch.

--
keywords: +patch
nosy: +vajrasky
Added file: http://bugs.python.org/file36967/better_err_listfuncs_trace.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22642
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22642] trace module: unclear error message

2014-10-19 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: needs patch - patch review
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22642
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22642] trace module: unclear error message

2014-10-15 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola':

$ python3.4 -m trace -l 
Traceback (most recent call last):
  File /usr/local/lib/python3.4/runpy.py, line 170, in _run_module_as_main
__main__, mod_spec)
  File /usr/local/lib/python3.4/runpy.py, line 85, in _run_code
exec(code, run_globals)
  File /usr/local/lib/python3.4/trace.py, line 858, in module
main()
  File /usr/local/lib/python3.4/trace.py, line 787, in main
progname = prog_argv[0]
IndexError: list index out of range


I would expect something more clear to be printed, like the program usage 
helper you get in this case:

$ python3.4 -m trace 
/usr/local/lib/python3.4/trace.py: must specify one of --trace, --count, 
--report, --listfuncs, or --trackcalls

--
messages: 229441
nosy: giampaolo.rodola
priority: normal
severity: normal
status: open
title: trace module: unclear error message
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22642
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22642] trace module: unclear error message

2014-10-15 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
components: +Library (Lib)
keywords: +easy
nosy: +belopolsky
stage:  - needs patch
versions: +Python 2.7, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22642
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com