Skip to content

Commit 8da8655

Browse files
committed
gh-127296: Document that argparse count action starts from a non-zero default
1 parent c8ea867 commit 8da8655

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/argparse.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,8 @@ how the command-line arguments should be handled. The supplied actions are:
836836
Namespace(verbose=3)
837837

838838
Note, the *default* will be ``None`` unless explicitly set to *0*.
839+
If the default value is a non-zero number, the count starts from that
840+
number rather than from zero.
839841

840842
* ``'help'`` - This prints a complete help message for all the options in the
841843
current parser and then exits. By default a help action is automatically

0 commit comments

Comments
 (0)