diff options
author | kotfu <kotfu@kotfu.net> | 2018-01-14 20:54:09 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-01-14 20:54:09 -0700 |
commit | eac6929c75195dba07da5d183c485918bb6899cf (patch) | |
tree | 0d394abf8e58f6e492dc6fb5558fd1c1dbedf074 /cmd2.py | |
parent | 22b4f4a6cfd1481c574afb0bababd1aeb6bda3af (diff) | |
download | cmd2-git-eac6929c75195dba07da5d183c485918bb6899cf.tar.gz |
remove use_argument_list attribute
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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): |