Skip to content

Commit 502fdff

Browse files
committed
Completion doc updates
1 parent e21e2ef commit 502fdff

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

cmd2/argparse_custom.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,18 +188,15 @@ def my_completer_method(self, text, line, begidx, endidx, arg_tokens)
188188
189189
**Patched argparse functions**
190190
191-
argparse._ActionsContainer.add_argument - adds arguments related to tab
192-
completion and enables nargs range
193-
parsing See _add_argument_wrapper for
194-
more details on these argument
195-
196-
argparse.ArgumentParser._get_nargs_pattern - adds support to for nargs ranges
197-
See _get_nargs_pattern_wrapper for
198-
more details
199-
200-
argparse.ArgumentParser._match_argument - adds support to for nargs ranges See
201-
_match_argument_wrapper for more
202-
details
191+
``argparse._ActionsContainer.add_argument`` - adds arguments related to tab
192+
completion and enables nargs range parsing. See _add_argument_wrapper for
193+
more details on these arguments.
194+
195+
``argparse.ArgumentParser._get_nargs_pattern`` - adds support to for nargs
196+
ranges. See _get_nargs_pattern_wrapper for more details.
197+
198+
``argparse.ArgumentParser._match_argument`` - adds support to for nargs ranges.
199+
See _match_argument_wrapper for more details.
203200
"""
204201

205202
import argparse

docs/features/completion.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,5 @@ See the argparse_completion_ example or the implementation of the built-in
135135
For More Information
136136
--------------------
137137

138-
See :mod:`cmd2.argparse_custom` for more details.
138+
See :mod:`cmd2.argparse_custom` for a more detailed discussion of argparse
139+
completion.

0 commit comments

Comments
 (0)