Commits

Kirill Simonov committed c91680d

Fixed tasks generated from `fn(*args)`.

Comments (0)

Files changed (1)

src/cogs/shell.py

                     param, default = param
                     T_dict[param] = ArgDsc(default=default)
             if varargs:
-                T_dict[param] = ArgDsc(default=(), plural=True)
+                T_dict[varargs] = ArgDsc(default=(), plural=True)
                 T_dict['_vararg'] = varargs
             T = type(T.__name__, (object,), T_dict)
         elif isinstance(T, types.ClassType):