Python version of the function call. Not called by cli() indirectly, so can be overridden to distinguish between Python and CLI calls. :type arguments: Dict
(self, **kwargs)
| 128 | * CLI + Python for single functions was wontfixed: https://github.com/pallets/click/issues/40 |
| 129 | ''' |
| 130 | def __call__(self, **kwargs): |
| 131 | ''' |
| 132 | Python version of the function call. Not called by cli() indirectly, |
| 133 | so can be overridden to distinguish between Python and CLI calls. |
| 134 | |
| 135 | :type arguments: Dict |
| 136 | ''' |
| 137 | return self._do_main(kwargs) |
| 138 | |
| 139 | def _do_main(self, kwargs): |
| 140 | return self.main(**self._get_args(kwargs)) |