Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #104696

Re: argparse

From "Sven R. Kunze" <srkunze@mail.de>
Newsgroups comp.lang.python
Subject Re: argparse
Date 2016-03-12 13:21 +0100
Message-ID <mailman.36.1457785295.12893.python-list@python.org> (permalink)
References <nbvjnl$7v7$1@gioia.aioe.org>

Show all headers | View raw


On 12.03.2016 00:18, Fillmore wrote:
>
> Playing with ArgumentParser. I can't find a way to override the -h and 
> --help options so that it provides my custom help message.

I remember everything being a lot easier using argh instead of argparse.

https://pypi.python.org/pypi/argh#examples

The doc string of a function basically is the help string which is true 
for arguments as well.

I hope that helps even though you asked for argparse explicitly. :-)

Best,
Sven

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

argparse Fillmore <fillmore_remove@hotmail.com> - 2016-03-11 18:18 -0500
  Re: argparse Fillmore <fillmore_remove@hotmail.com> - 2016-03-11 18:32 -0500
  Re: argparse "Sven R. Kunze" <srkunze@mail.de> - 2016-03-12 13:21 +0100

csiph-web