diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/freefeatures.rst | 4 | ||||
-rw-r--r-- | docs/hooks.rst | 2 |
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: |