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