yep, i agree. we are using args as a copy of self.args so that self.args is preserved.

but the args list is being modified during it's iteration, (which I think is causing the problem). The log is the one caused by the next line

```python
if args:
    self.error('Any arguments passed to --function need to be passed ' ...)
```