New submission from Tarsis Azevedo tarsis.azev...@gmail.com:
Hi all, when I use argparse in python prompt, and raise a exception, as the
code below:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-i' type=int)
parser.parse_args(['-i
Tarsis Azevedo tarsis.azev...@gmail.com added the comment:
Hi Doug,
I catched the IOError exception and used the error function of ArgumentParser
class to return a beautful error message.
--
keywords: +patch
nosy: +Tarsis.Azevedo
Added file: http://bugs.python.org/file19749/issue9509
Tarsis Azevedo tarsis.azev...@gmail.com added the comment:
Hi all,
I followed from 1 to 5 steps of jerry's comment and removed a recursive import
I didnt get it.
The patch is attached.
--
keywords: +patch
nosy: +Tarsis.Azevedo
Added file: http://bugs.python.org/file19697/issue8911