summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-xexamples/python_scripting.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/python_scripting.py b/examples/python_scripting.py
index 5d3f43b3..bb43095e 100755
--- a/examples/python_scripting.py
+++ b/examples/python_scripting.py
@@ -57,8 +57,8 @@ class CmdLineApp(cmd2.Cmd):
@cmd2.with_argument_list
def do_cd(self, arglist):
"""Change directory.
- Usage:
- cd <new_dir>
+ Usage:
+ cd <new_dir>
"""
# Expect 1 argument, the directory to change to
if not arglist or len(arglist) != 1:
@@ -120,5 +120,6 @@ class CmdLineApp(cmd2.Cmd):
if __name__ == '__main__':
import sys
+
c = CmdLineApp()
sys.exit(c.cmdloop())