Show More
@@ -169,12 +169,12 b' class Alias(object):' | |||||
169 | if cmd.find('%l') >= 0: |
|
169 | if cmd.find('%l') >= 0: | |
170 | cmd = cmd.replace('%l', rest) |
|
170 | cmd = cmd.replace('%l', rest) | |
171 | rest = '' |
|
171 | rest = '' | |
172 |
|
172 | |||
173 | if nargs==0: |
|
173 | if nargs==0: | |
174 |
|
|
174 | if cmd.find('%%s') >= 1: | |
175 |
|
|
175 | cmd = cmd.replace('%%s', '%s') | |
176 |
|
|
176 | # Simple, argument-less aliases | |
177 |
|
|
177 | cmd = '%s %s' % (cmd, rest) | |
178 | else: |
|
178 | else: | |
179 | # Handle aliases with positional arguments |
|
179 | # Handle aliases with positional arguments | |
180 | args = rest.split(None, nargs) |
|
180 | args = rest.split(None, nargs) |
General Comments 0
You need to be logged in to leave comments.
Login now