diff options
author | Brandt Bucher <brandtbucher@gmail.com> | 2019-11-11 20:47:48 (GMT) |
---|---|---|
committer | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-11-11 20:47:48 (GMT) |
commit | a0ed99bca8475cbc82e9202aa354faba2a4620f4 (patch) | |
tree | 711f4057ace58c12f19608a0a428c64724a9b882 /Doc | |
parent | 84ac4376587e35d16b4d0977c4f330d9d04b690a (diff) | |
download | cpython-a0ed99bca8475cbc82e9202aa354faba2a4620f4.zip cpython-a0ed99bca8475cbc82e9202aa354faba2a4620f4.tar.gz cpython-a0ed99bca8475cbc82e9202aa354faba2a4620f4.tar.bz2 |
bpo-38438: Simplify argparse "star nargs" usage. (GH-17106)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/argparse.rst | 2 | ||||
-rw-r--r-- | Doc/library/pdb.rst | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 818acf4..9a1cf3a 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -449,7 +449,7 @@ default values to each of the argument help messages:: >>> parser.add_argument('--foo', type=int, default=42, help='FOO!') >>> parser.add_argument('bar', nargs='*', default=[1, 2, 3], help='BAR!') >>> parser.print_help() - usage: PROG [-h] [--foo FOO] [bar [bar ...]] + usage: PROG [-h] [--foo FOO] [bar ...] positional arguments: bar BAR! (default: [1, 2, 3]) diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index f26b6a8..0b9a687 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -296,20 +296,20 @@ by the local file. Temporary breakpoint, which is removed automatically when it is first hit. The arguments are the same as for :pdbcmd:`break`. -.. pdbcommand:: cl(ear) [filename:lineno | bpnumber [bpnumber ...]] +.. pdbcommand:: cl(ear) [filename:lineno | bpnumber ...] With a *filename:lineno* argument, clear all the breakpoints at this line. With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). -.. pdbcommand:: disable [bpnumber [bpnumber ...]] +.. pdbcommand:: disable [bpnumber ...] Disable the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop execution, but unlike clearing a breakpoint, it remains in the list of breakpoints and can be (re-)enabled. -.. pdbcommand:: enable [bpnumber [bpnumber ...]] +.. pdbcommand:: enable [bpnumber ...] Enable the breakpoints specified. |