diff options
author | Calvin Lobo <calvinlobo@gmail.com> | 2018-02-04 15:33:00 -0500 |
---|---|---|
committer | Calvin Lobo <calvinlobo@gmail.com> | 2018-02-04 15:33:00 -0500 |
commit | bb53287029df5ce870e15b46a1b9109090620f05 (patch) | |
tree | 963de5cdf1b2cc73deb08d0574926b272631c1bb | |
parent | 16e5f5112637736453d9d9c691b004fea79a5b7f (diff) | |
download | cmd2-git-bb53287029df5ce870e15b46a1b9109090620f05.tar.gz |
Fixed typo in ThirdLevel.do_say() print
Added shebang line
-rw-r--r-- | examples/submenus.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/submenus.py b/examples/submenus.py index 39512ba7..6fcbb307 100644 --- a/examples/submenus.py +++ b/examples/submenus.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """ Create a CLI with a nested command structure as follows. The commands 'second' and 'third' navigate the CLI to the scope of the submenu. Nesting of the submenus is done with the cmd2.AddSubmenu() decorator. @@ -25,7 +26,7 @@ class ThirdLevel(cmd2.Cmd): def do_say(self, line): print("You called a command in ThirdLevel with '%s'. " - "It has access to second_level_attr: %s " + "It has access to top_level_attr: %s " "and second_level_attr: %s" % (line, self.top_level_attr, self.second_level_attr)) def help_say(self): |