diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-09-01 14:12:06 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-09-01 14:20:26 -0400 |
commit | ceacf225e5e267a96bf5db4fc5bb7702fa6f8a72 (patch) | |
tree | 904044e79cbb4b6f74db56a89bf704aa8658e97d | |
parent | 64fdc44febc5d2551889cd973699d84dbb849f37 (diff) | |
download | cmd2-git-ceacf225e5e267a96bf5db4fc5bb7702fa6f8a72.tar.gz |
Updating docs
-rw-r--r-- | cmd2/argparse_custom.py | 2 | ||||
-rw-r--r-- | docs/api/argparse_custom.rst | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py index b33dd95c..280e46ba 100644 --- a/cmd2/argparse_custom.py +++ b/cmd2/argparse_custom.py @@ -966,6 +966,8 @@ def _ArgumentParser_set_ap_completer_type(self: argparse.ArgumentParser, ap_comp This function is added by cmd2 as a method called ``set_ap_completer_type()`` to ``argparse.ArgumentParser`` class. + To call: ``parser.set_ap_completer_type(ap_completer_type)`` + :param self: ArgumentParser being edited :param ap_completer_type: the custom ArgparseCompleter-based class to use when tab completing arguments for this parser """ diff --git a/docs/api/argparse_custom.rst b/docs/api/argparse_custom.rst index 1c63181b..49897b05 100644 --- a/docs/api/argparse_custom.rst +++ b/docs/api/argparse_custom.rst @@ -25,6 +25,10 @@ Added Accessor Methods .. autofunction:: _action_set_suppress_tab_hint +.. autofunction:: _ArgumentParser_get_ap_completer_type + +.. autofunction:: _ArgumentParser_set_ap_completer_type + Subcommand Removal ------------------ |