From bb53287029df5ce870e15b46a1b9109090620f05 Mon Sep 17 00:00:00 2001 From: Calvin Lobo Date: Sun, 4 Feb 2018 15:33:00 -0500 Subject: Fixed typo in ThirdLevel.do_say() print Added shebang line --- examples/submenus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/submenus.py') 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): -- cgit v1.2.1