summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-14 17:36:44 -0400
committerGitHub <noreply@github.com>2019-06-14 17:36:44 -0400
commitddd07f9cd6d72baca1232ae98856cf3b3d564706 (patch)
tree8e03d435730baf1cc16ccc016e594d0b64d8e04a /docs
parentf64f9d559caa08b5649b9bd356af2812acf103bd (diff)
parent756d8d38502e934ea180c4cfb8dea3efd124a3bf (diff)
downloadcmd2-git-ddd07f9cd6d72baca1232ae98856cf3b3d564706.tar.gz
Merge pull request #696 from python-cmd2/script_refactor
Script refactor
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: