##// END OF EJS Templates
alias: on --debug, print expansion when it has invalid arguments
Brodie Rao -
r12093:cd895084 default
parent child Browse files
Show More
@@ -293,7 +293,12 b' class cmdalias(object):'
293 if self.definition.startswith('!'):
293 if self.definition.startswith('!'):
294 return self.fn(ui, *args, **opts)
294 return self.fn(ui, *args, **opts)
295 else:
295 else:
296 return util.checksignature(self.fn)(ui, *args, **opts)
296 try:
297 util.checksignature(self.fn)(ui, *args, **opts)
298 except error.SignatureError:
299 args = ' '.join([self.cmdname] + self.args)
300 ui.debug("alias '%s' expands to '%s'\n" % (self.name, args))
301 raise
297
302
298 def addaliases(ui, cmdtable):
303 def addaliases(ui, cmdtable):
299 # aliases are processed after extensions have been loaded, so they
304 # aliases are processed after extensions have been loaded, so they
General Comments 0
You need to be logged in to leave comments. Login now