Commander icon indicating copy to clipboard operation
Commander copied to clipboard

Cannot call value of non-function type 'module<Commander>'

Open yeldarby opened this issue 6 years ago • 0 comments

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.)

yeldarby avatar Oct 14 '19 21:10 yeldarby