Commander
Commander copied to clipboard
Cannot call value of non-function type 'module<Commander>'
I'm getting an error after installing and importing Commander via Swift Package Manager:
import Commander
Commander().dispatch() // <-- Cannot call value of non-function type 'module<Commander>'
Desktop (please complete the following information):
- OS: macOS 10.15
- Xcode: 11.1
Additional context
~Calling Commander.dispatch() instead seems to work but no Options or arguments get passed to my commands.~ (I got this working by implementing init(from decoder:Decoder) -- that should probably be added to the docs.)