@@ -112,15 +112,15 @@ terminator
112112For many simple commands, like the ``echo `` command above, you can ignore the
113113``Statement `` object and all of it's attributes and just use the passed value
114114as a string. You might choose to use the ``argv `` attribute to do more
115- sophisticated argument processing. Before you go to far down that path, you
115+ sophisticated argument processing. Before you go too far down that path, you
116116should check out the :ref: `features/argument_processing:Argument Processing `
117117functionality included with ``cmd2 ``.
118118
119119
120120Return Values
121121-------------
122122
123- Most commands should return nothing (either my omitting a ``return `` statement,
123+ Most commands should return nothing (either by omitting a ``return `` statement,
124124or by ``return None ``. This indicates that your command is finished (with or
125125without errors), and that ``cmd2 `` should prompt the user for more input.
126126
@@ -142,7 +142,7 @@ The ``cmd2.Cmd`` object sets an ``exit_code`` attribute to zero when it is
142142instantiated. The value of this attribute is returned from the ``cmdloop() ``
143143call. Therefore, if you don't do anything with this attribute in your code,
144144``cmdloop() `` will (almost) always return zero. There are a few built-in
145- ``cmd2 `` commands which set ``exit_code `` to ``-1 `` if an error occers .
145+ ``cmd2 `` commands which set ``exit_code `` to ``-1 `` if an error occurs .
146146
147147You can use this capability to easily return your own values to the operating
148148system shell::
@@ -157,7 +157,7 @@ system shell::
157157
158158 def do_bail(self, line):
159159 """Exit the application""
160- self.poutput ("fatal error, exiting")
160+ self.perror ("fatal error, exiting")
161161 self.exit_code = 2
162162 return true
163163
@@ -178,7 +178,7 @@ the following interaction::
178178Exception Handling
179179------------------
180180
181- You may choose you may choose to catch and handle any exceptions which occur in
181+ You may choose to catch and handle any exceptions which occur in
182182a command method. If the command method raises an exception, ``cmd2 `` will
183183catch it and display it for you. The `debug ` :ref: `setting
184184<features/settings:Settings>` controls how the exception is displayed. If
@@ -193,6 +193,6 @@ Disabling or Hiding Commands
193193See :ref: `features/disable_commands:Disabling Commands ` for details of how
194194to:
195195
196- - removing commands included in ``cmd2 ``
197- - hiding commands from the help menu
198- - disabling and re-enabling commands at runtime
196+ - remove commands included in ``cmd2 ``
197+ - hide commands from the help menu
198+ - disable and re-enable commands at runtime
0 commit comments