(self, func)
| 199 | self.name = name |
| 200 | |
| 201 | def __call__(self, func): |
| 202 | if not getattr(func, 'has_arguments', False): |
| 203 | func.has_arguments = True |
| 204 | func.decorators = [] |
| 205 | if self.name is not None: |
| 206 | func.argcmd_name = self.name |
| 207 | # This should be the first decorator in the list of decorators, thus the |
| 208 | # last to execute. Build the parser. |
| 209 | func.parser = construct_parser(func) |
| 210 | return func |
| 211 | |
| 212 | |
| 213 | class ArgMethodWrapper(ArgDecorator): |
nothing calls this directly
no test coverage detected