neithere / argh

An argparse wrapper that doesn't make you say "argh" each time you deal with it.
http://argh.rtfd.org
GNU Lesser General Public License v3.0
369 stars 56 forks source link

append default value of each optional argument to its help message #43

Closed neithere closed 11 years ago

neithere commented 11 years ago

When a parser is constructed with

argparse.ArgumentParser(format_class=argparse.ArgumentDefaultsHelpFormatter)

the default value of each parameter is automatically appended to the help message.

Is this possible to add this quite helpful functionality to argh?

Note: This issue has been automatically migrated from Bitbucket Created by @yAngle on 2013-06-04 19:24:58+00:00, last updated: 2013-06-07 05:43:13+00:00

neithere commented 11 years ago

That's a good idea, thanks. I think this should be the default behaviour.

Note: This comment has been automatically migrated from Bitbucket Created by @neithere on 2013-06-06 20:25:13+00:00

neithere commented 11 years ago

Fix #43: append default value of each optional argument to its help message (thanks yAngle)

→ <<cset 3be218483c25>>

Note: This comment has been automatically migrated from Bitbucket Created by @neithere on 2013-06-06 22:43:56+00:00

neithere commented 11 years ago

Awesome. Thanks!

Note: This comment has been automatically migrated from Bitbucket Created by @yAngle on 2013-06-07 05:43:13+00:00