Handle arguments after aliases correctly when splitting.
This commit is contained in:
parent
1655ddbfac
commit
45e1feeb27
@ -165,7 +165,14 @@ class CommandManager:
|
||||
except (config.NoOptionError, config.NoSectionError):
|
||||
pass
|
||||
else:
|
||||
return self.parse(alias, aliases=False)
|
||||
try:
|
||||
new_cmd = '{} {}'.format(alias, parts[1])
|
||||
except IndexError:
|
||||
new_cmd = alias
|
||||
if text.endswith(' '):
|
||||
new_cmd += ' '
|
||||
logging.debug("Re-parsing with '{}'.".format(new_cmd))
|
||||
return self.parse(new_cmd, aliases=False)
|
||||
try:
|
||||
cmd = cmdutils.cmd_dict[cmdstr]
|
||||
except KeyError:
|
||||
|
Loading…
Reference in New Issue
Block a user