summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 00:27:06 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 00:27:06 -0500
commit07e37b2d081161af32feb64890b1fd4236bf5f13 (patch)
tree94347c7773a77a637db399f1e98bf570b67a95ce /cmd2.py
parentddac998671ed64c07af87feab7f3fd568bc76ce7 (diff)
downloadcmd2-git-07e37b2d081161af32feb64890b1fd4236bf5f13.tar.gz
Fixed do_history unit tests and implementation
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 c8682dc5..91e90def 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1679,7 +1679,7 @@ arg is /regex/ matching regular expression regex"""
@with_argument_parser(argparser)
def do_history(self, arglist, args):
# If an argument was supplied, then retrieve partial contents of the history
- if arglist:
+ if args.arg:
# If a character indicating a slice is present, retrieve a slice of the history
arg = args.arg[0]
if '..' in arg or ':' in arg: