Skip to content

Commit 7d47784

Browse files
authored
Merge pull request #320 from python-cmd2/startup_script
Startup script: fixed small typos and changed example code class name
2 parents 00871e3 + bb57ac8 commit 7d47784

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/freefeatures.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ be pointless within an interactive session.
5555
Startup Initialization Script
5656
=============================
5757
You can load and execute commands from a startup initialization script by passing a file path to the ``startup_script``
58-
argument to the ``cmd.Cmd.__init__()`` method like so::
58+
argument to the ``cmd2.Cmd.__init__()`` method like so::
5959

60-
class AliasAndStartup(cmd2.Cmd):
61-
def __init__(self):
62-
cmd2.Cmd.__init__(self, startup_script='.cmd2rc')
60+
class StartupApp(cmd2.Cmd):
61+
def __init__(self):
62+
cmd2.Cmd.__init__(self, startup_script='.cmd2rc')
6363

6464
See the AliasStartup_ example for a demonstration.
6565

0 commit comments

Comments
 (0)