summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-20 16:48:52 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-20 16:48:52 -0500
commit5550ab73a91d2834e6bda72eb3889998ad59be51 (patch)
tree12b387896ea91720416639daf8b10f8d66406dda /cmd2.py
parent29ef26875664dfa3d70273b321092a83a68d9966 (diff)
downloadcmd2-git-5550ab73a91d2834e6bda72eb3889998ad59be51.tar.gz
Added unit tests for sub-commands
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 455a7f48..a533bb7a 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -776,7 +776,7 @@ class Cmd(cmd.Cmd):
cmd, args, foo = self.parseline(line)
arglist = args.split()
- if cmd + ' ' + args == line:
+ if len(arglist) <= 1 and cmd + ' ' + args == line:
funcname = self._func_named(cmd)
if funcname:
# Check to see if this function was decorated with an argparse ArgumentParser