summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-01-14 20:54:09 -0700
committerkotfu <kotfu@kotfu.net>2018-01-14 20:54:09 -0700
commiteac6929c75195dba07da5d183c485918bb6899cf (patch)
tree0d394abf8e58f6e492dc6fb5558fd1c1dbedf074 /cmd2.py
parent22b4f4a6cfd1481c574afb0bababd1aeb6bda3af (diff)
downloadcmd2-git-eac6929c75195dba07da5d183c485918bb6899cf.tar.gz
remove use_argument_list attribute
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd2.py b/cmd2.py
index 51432be4..116c3f55 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -520,7 +520,6 @@ class Cmd(cmd.Cmd):
excludeFromHistory = '''run ru r history histor histo hist his hi h edit edi ed e eof eo eos'''.split()
exclude_from_help = ['do_eof', 'do_eos'] # Commands to exclude from the help menu
reserved_words = []
- use_argument_list = False
# Attributes which ARE dynamically settable at runtime
abbrev = False # Abbreviated commands recognized
@@ -1024,16 +1023,13 @@ class Cmd(cmd.Cmd):
funcname = self._func_named(statement.parsed.command)
if not funcname:
return self.default(statement)
+
try:
func = getattr(self, funcname)
except AttributeError:
return self.default(statement)
- if self.use_argument_list:
- lexed_arglist = parse_quoted_string(cmdline)
- stop = func(lexed_arglist)
- else:
- stop = func(statement)
+ stop = func(statement)
return stop
def default(self, statement):