From bf3dc169c047acda1c1cf505e8cd0e9e46d4b4cf Mon Sep 17 00:00:00 2001 From: kotfu Date: Wed, 5 Feb 2020 22:31:18 -0700 Subject: Clean up class and method references - In docs/api/cmd.rst, the `cmd2.Cmd` class was defined as `cmd2.cmd2.Cmd`, which required the extraneous `cmd2` every time we referenced it. This extra `cmd2` is no longer required. - always refer to a bare cmd2 using ``cmd2`` per our documentation conventions --- docs/api/cmd.rst | 2 +- docs/api/decorators.rst | 8 ++++---- docs/api/exceptions.rst | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/api') diff --git a/docs/api/cmd.rst b/docs/api/cmd.rst index ee8d7c67..34a34105 100644 --- a/docs/api/cmd.rst +++ b/docs/api/cmd.rst @@ -1,7 +1,7 @@ cmd2.Cmd ======== -.. autoclass:: cmd2.cmd2.Cmd +.. autoclass:: cmd2.Cmd :members: .. attribute:: help_error diff --git a/docs/api/decorators.rst b/docs/api/decorators.rst index a5fc022e..12ab62fa 100644 --- a/docs/api/decorators.rst +++ b/docs/api/decorators.rst @@ -1,10 +1,10 @@ Decorators ========== -.. autofunction:: cmd2.decorators.with_category - -.. autofunction:: cmd2.decorators.with_argument_list +.. autofunction:: cmd2.decorators.with_argparser .. autofunction:: cmd2.decorators.with_argparser_and_unknown_args -.. autofunction:: cmd2.decorators.with_argparser +.. autofunction:: cmd2.decorators.with_argument_list + +.. autofunction:: cmd2.decorators.with_category diff --git a/docs/api/exceptions.rst b/docs/api/exceptions.rst index 656c4a5a..3479fec3 100644 --- a/docs/api/exceptions.rst +++ b/docs/api/exceptions.rst @@ -3,4 +3,4 @@ Exceptions .. autoexception:: cmd2.cmd2.EmbeddedConsoleExit -.. autoexception:: cmd2.cmd2.EmptyStatement +.. autoexception:: cmd2.EmptyStatement -- cgit v1.2.1