From: Georg Brandl Date: Sun, 6 Oct 2013 07:50:36 +0000 (+0200) Subject: Fix prefix_chars not being applied in help text example (reported by John Kooker... X-Git-Tag: v2.7.6rc1~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b38582e76861e9ad73509f956b330479c145ec4;p=python Fix prefix_chars not being applied in help text example (reported by John Kooker on docs@) --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 61cb499b13..0dc2ab444d 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -579,10 +579,10 @@ the help options:: >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/') >>> parser.print_help() - usage: PROG [-h] + usage: PROG [+h] optional arguments: - -h, --help show this help message and exit + +h, ++help show this help message and exit The add_argument() method