TypeError: main() got an unexpected keyword argument 'format'
Closed this issue · 0 comments
tomas-harryson-wcar commented
Describe the bug
Traceback (most recent call last):
File "/home/x/.local/bin/deforest", line 11, in <module>
sys.exit(main())
File "/home/x/.local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/x/.local/lib/python3.8/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/x/.local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/x/.local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
TypeError: main() got an unexpected keyword argument 'format'
Expected behavior
A cleaned template returned
OAS/Swagger version:
- OAS 3
Additional context
Option variable has the wrong name in the @click.option part vs the method call