Skip to content

Commit 35d25d5

Browse files
committed
Updated docs
1 parent 7e374ac commit 35d25d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/argument_processing.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Here's what it looks like::
275275

276276
...
277277

278-
Using custom namespace with argument parser decorators
278+
Using custom argparse.Namespace with argument parser decorators
279279
===============================================================================================
280280
In some cases, it may be necessary to write custom ``argparse`` code that is dependent on state data of your
281281
application. To support this ability while still allowing use of the decorators, both ``@with_argparser`` and
@@ -297,6 +297,9 @@ To use this function with the argparse decorators, do the following::
297297

298298
@with_argparser(my_parser, ns_provider=settings_ns_provider)
299299

300+
The Namespace is passed by the decorators to the ``argparse`` parsing functions which gives your custom code access
301+
to the state data it needs for its parsing logic.
302+
300303
Sub-commands
301304
============
302305
Sub-commands are supported for commands using either the ``@with_argparser`` or

0 commit comments

Comments
 (0)