(self, func)
| 233 | self.name = name |
| 234 | |
| 235 | def __call__(self, func): |
| 236 | if not getattr(func, 'has_arguments', False): |
| 237 | func.has_arguments = True |
| 238 | func.decorators = [] |
| 239 | if self.name is not None: |
| 240 | func.argcmd_name = self.name |
| 241 | # This should be the first decorator in the list of decorators, thus the |
| 242 | # last to execute. Build the parser. |
| 243 | func.parser = construct_parser(func) |
| 244 | return func |
| 245 | |
| 246 | |
| 247 | class ArgMethodWrapper(ArgDecorator): |
nothing calls this directly
no test coverage detected