diff options
-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 ------------------ |