diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-07-02 13:46:03 -0400 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-07-04 00:29:40 -0400 |
| commit | 30998bd236257e54aa245fb8a52805c50ae5882a (patch) | |
| tree | bd29a1356020f180a8644a362ca20176a1aa0718 /docs | |
| parent | 658342dc497a2142923ec04e6b69b5181a1aa6bb (diff) | |
| download | cmd2-git-30998bd236257e54aa245fb8a52805c50ae5882a.tar.gz | |
Added accessor methods for cmd2-specific attributes to the argparse.Action class.
Deprecated set_choices_provider() and set_completer() functions in favor of these new methods.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/argparse_custom.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/api/argparse_custom.rst b/docs/api/argparse_custom.rst index bdb53e1a..1c63181b 100644 --- a/docs/api/argparse_custom.rst +++ b/docs/api/argparse_custom.rst @@ -3,3 +3,29 @@ cmd2.argparse_custom .. automodule:: cmd2.argparse_custom :members: + + +Added Accessor Methods +---------------------- +.. autofunction:: _action_get_choices_callable + +.. autofunction:: _action_set_choices_provider + +.. autofunction:: _action_set_completer + +.. autofunction:: _action_get_descriptive_header + +.. autofunction:: _action_set_descriptive_header + +.. autofunction:: _action_get_nargs_range + +.. autofunction:: _action_set_nargs_range + +.. autofunction:: _action_get_suppress_tab_hint + +.. autofunction:: _action_set_suppress_tab_hint + + +Subcommand Removal +------------------ +.. autofunction:: _SubParsersAction_remove_parser |
