summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-xcmd2/cmd2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 305c4173..f29fc517 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -449,10 +449,10 @@ class Cmd(cmd.Cmd):
shortcuts=shortcuts)
# Verify commands don't have invalid names (like starting with a shortcut)
- for cmd in self.get_all_commands():
- valid, errmsg = self.statement_parser.is_valid_command(cmd)
+ for cur_cmd in self.get_all_commands():
+ valid, errmsg = self.statement_parser.is_valid_command(cur_cmd)
if not valid:
- raise ValueError("Invalid command name {!r}: {}".format(cmd, errmsg))
+ raise ValueError("Invalid command name {!r}: {}".format(cur_cmd, errmsg))
# Stores results from the last command run to enable usage of results in a Python script or interactive console
# Built-in commands don't make use of this. It is purely there for user-defined commands and convenience.