def f(self,cmd,*args): if len(args) < 2: return ["error","nonfatal","syntax","Correct syntax: " +cmd+ ",,,[arg 1],[arg 2],[...]"] return ["req",args[0]] + runCommand(self,*args[1:]) commands["req"] = f