From d2914ce0f703554638ec696d8e4b34f46e476b65 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 6 Oct 2013 09:50:36 +0200 Subject: Fix prefix_chars not being applied in help text example (reported by John Kooker on docs@) --- Doc/library/argparse.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 7267ae4..2f341b7 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -598,10 +598,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 -- cgit v0.12