You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/library/argparse.rst
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Name Description
63
63
action_ Specify how an argument should be handled ``'store'``, ``'store_const'``, ``'store_true'``, ``'append'``, ``'append_const'``, ``'count'``, ``'help'``, ``'version'``
64
64
choices_ Limit values to a specific set of choices ``['foo', 'bar']``, ``range(1, 10)``, or :class:`~collections.abc.Container` instance
65
65
const_ Store a constant value
66
-
default_ Default value used when an argument is not provided Defaults to *None*
66
+
default_ Default value used when an argument is not provided Defaults to ``None``
67
67
dest_ Specify the attribute name used in the result namespace
68
68
help_ Help message for an argument
69
69
metavar_ Alternate display name for the argument as shown in help
@@ -201,9 +201,10 @@ ArgumentParser objects
201
201
* usage_ - The string describing the program usage (default: generated from
202
202
arguments added to parser)
203
203
204
-
* description_ - Text to display before the argument help (default: none)
204
+
* description_ - Text to display before the argument help
205
+
(by default, no text)
205
206
206
-
* epilog_ - Text to display after the argument help (default: none)
207
+
* epilog_ - Text to display after the argument help (by default, no text)
207
208
208
209
* parents_ - A list of :class:`ArgumentParser` objects whose arguments should
0 commit comments