summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lalor <markwlalor@gmail.com>2018-03-17 12:14:04 -0400
committerMark Lalor <markwlalor@gmail.com>2018-03-17 12:14:04 -0400
commit1fd482f9abd56750186f10fe0a018d7c04a33807 (patch)
tree6b3b5ae712c64dc9179f8d34541cbf6320fd7841
parent536accac51896b8390ce34ef7b1b8617e7fce278 (diff)
downloadcmd2-git-1fd482f9abd56750186f10fe0a018d7c04a33807.tar.gz
Fixed small typos and changed example code class name
-rw-r--r--docs/freefeatures.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst
index a27ee453..740ea067 100644
--- a/docs/freefeatures.rst
+++ b/docs/freefeatures.rst
@@ -55,11 +55,11 @@ be pointless within an interactive session.
Startup Initialization Script
=============================
You can load and execute commands from a startup initialization script by passing a file path to the ``startup_script``
-argument to the ``cmd.Cmd.__init__()`` method like so::
+argument to the ``cmd2.Cmd.__init__()`` method like so::
- class AliasAndStartup(cmd2.Cmd):
- def __init__(self):
- cmd2.Cmd.__init__(self, startup_script='.cmd2rc')
+ class StartupApp(cmd2.Cmd):
+ def __init__(self):
+ cmd2.Cmd.__init__(self, startup_script='.cmd2rc')
See the AliasStartup_ example for a demonstration.