mirror of
https://github.com/python/cpython.git
synced 2025-09-18 06:30:38 +00:00
fix Sphinx warnings
This commit is contained in:
parent
90c5802e6b
commit
c516d199ec
1 changed files with 4 additions and 3 deletions
|
@ -363,7 +363,7 @@ epilog_ texts in command-line help messages::
|
||||||
will be wrapped across a couple lines
|
will be wrapped across a couple lines
|
||||||
|
|
||||||
Passing :class:`argparse.RawDescriptionHelpFormatter` as ``formatter_class=``
|
Passing :class:`argparse.RawDescriptionHelpFormatter` as ``formatter_class=``
|
||||||
indicates that description_ and eiplog_ are already correctly formatted and
|
indicates that description_ and epilog_ are already correctly formatted and
|
||||||
should not be line-wrapped::
|
should not be line-wrapped::
|
||||||
|
|
||||||
>>> parser = argparse.ArgumentParser(
|
>>> parser = argparse.ArgumentParser(
|
||||||
|
@ -1581,8 +1581,9 @@ Parser defaults
|
||||||
|
|
||||||
Most of the time, the attributes of the object returned by :meth:`parse_args`
|
Most of the time, the attributes of the object returned by :meth:`parse_args`
|
||||||
will be fully determined by inspecting the command-line args and the argument
|
will be fully determined by inspecting the command-line args and the argument
|
||||||
actions. :method:`set_defaults` allows some additional attributes that are
|
actions. :meth:`ArgumentParser.set_defaults` allows some additional
|
||||||
determined without any inspection of the command-line to be added::
|
attributes that are determined without any inspection of the command-line to
|
||||||
|
be added::
|
||||||
|
|
||||||
>>> parser = argparse.ArgumentParser()
|
>>> parser = argparse.ArgumentParser()
|
||||||
>>> parser.add_argument('foo', type=int)
|
>>> parser.add_argument('foo', type=int)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue