summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-11 17:39:11 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-11 17:39:11 -0400
commit77633bc4498d6f11b07ea0a3bd13d4830f809ff8 (patch)
tree037879fb49353ac66a5d2a3e6c74f0cb3a3b0dd2 /docs
parent1aee0316973873e8967679f6778952c1d696866a (diff)
downloadcmd2-git-77633bc4498d6f11b07ea0a3bd13d4830f809ff8.tar.gz
Removed support for cmd.cmdqueue
allow_cli_args is now an argument to __init__ instead of a cmd2 class member
Diffstat (limited to 'docs')
-rw-r--r--docs/freefeatures.rst4
-rw-r--r--docs/hooks.rst2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst
index 05b5391d..12421601 100644
--- a/docs/freefeatures.rst
+++ b/docs/freefeatures.rst
@@ -81,13 +81,13 @@ quotation marks if it is more than a one-word command.
.. note::
If you wish to disable cmd2's consumption of command-line arguments, you can do so by setting the ``allow_cli_args``
- attribute of your ``cmd2.Cmd`` class instance to ``False``. This would be useful, for example, if you wish to use
+ argument of your ``cmd2.Cmd`` class instance to ``False``. This would be useful, for example, if you wish to use
something like Argparse_ to parse the overall command line arguments for your application::
from cmd2 import Cmd
class App(Cmd):
def __init__(self):
- self.allow_cli_args = False
+ super().__init__(allow_cli_args=False)
.. _Argparse: https://docs.python.org/3/library/argparse.html
diff --git a/docs/hooks.rst b/docs/hooks.rst
index 35753e59..5db97fe5 100644
--- a/docs/hooks.rst
+++ b/docs/hooks.rst
@@ -54,7 +54,7 @@ value is ignored.
Application Lifecycle Attributes
--------------------------------
-There are numerous attributes (member variables of the ``cmd2.Cmd``) which have
+There are numerous attributes of and arguments to ``cmd2.Cmd`` which have
a significant effect on the application behavior upon entering or during the
main loop. A partial list of some of the more important ones is presented here: