Re: suppressing argparse arguments in the help

2012-02-28 Thread Calvin Spealman
On Tue, Feb 28, 2012 at 1:07 PM, Peter Otten <__pete...@web.de> wrote: > Andrea Crotti wrote: > >> On 02/28/2012 04:02 PM, Peter Otten wrote: >>> Andrea Crotti wrote: >>> I have a script that might be used interactively but also has some arguments that should not be used by "normal"

Re: suppressing argparse arguments in the help

2012-02-28 Thread Peter Otten
Andrea Crotti wrote: > On 02/28/2012 04:02 PM, Peter Otten wrote: >> Andrea Crotti wrote: >> >>> I have a script that might be used interactively but also has some >>> arguments that >>> should not be used by "normal" users. >>> So I just want to suppress them from the help. >>> I've read somewher

Re: suppressing argparse arguments in the help

2012-02-28 Thread Andrea Crotti
On 02/28/2012 04:02 PM, Peter Otten wrote: Andrea Crotti wrote: I have a script that might be used interactively but also has some arguments that should not be used by "normal" users. So I just want to suppress them from the help. I've read somewhere that the help=SUPPRESS should do what I want

Re: suppressing argparse arguments in the help

2012-02-28 Thread Peter Otten
Andrea Crotti wrote: > I have a script that might be used interactively but also has some > arguments that > should not be used by "normal" users. > So I just want to suppress them from the help. > I've read somewhere that the help=SUPPRESS should do what I want: > > parser.add_argument('-n'

suppressing argparse arguments in the help

2012-02-28 Thread Andrea Crotti
I have a script that might be used interactively but also has some arguments that should not be used by "normal" users. So I just want to suppress them from the help. I've read somewhere that the help=SUPPRESS should do what I want: parser.add_argument('-n', '--test_only',