summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 2c08ddc8..28264fb3 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1134,7 +1134,7 @@ class Cmd(cmd.Cmd):
'''Shows value of a parameter.'''
# If arguments are being passed as a list instead of as a string
if USE_ARG_LIST:
- if arg and len(arg) > 0:
+ if arg:
arg = arg[0]
else:
arg = ''
@@ -1255,7 +1255,7 @@ class Cmd(cmd.Cmd):
"""
# If arguments are being passed as a list instead of as a string
if USE_ARG_LIST:
- if arg and len(arg) > 0:
+ if arg:
arg = arg[0]
else:
arg = ''