Revert duplicate changes in argparse docs.

This commit is contained in:
Andrew Svetlov 2012-11-28 19:23:52 +02:00
parent e15cb61dde
commit 74120996f5
1 changed files with 0 additions and 15 deletions

View File

@ -1425,21 +1425,6 @@ be achieved by specifying the ``namespace=`` keyword argument::
'BAR'
Converting the namespace to a dict
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It's possible to convert a namespace to a :class:`dict` by using the built-in
function :func:`vars` in this fashion::
args = parser.parse_args()
argdict = vars(args)
This makes it easy to introspect the namespace or to pass the command-line
arguments to a function taking a bunch of keyword arguments::
somefunction(**vars(parser.parse_args()))
Other utilities
---------------