generator-marionette icon indicating copy to clipboard operation
generator-marionette copied to clipboard

--inherit does not seem to work

Open code-surfer opened this issue 10 years ago • 1 comments

The documented

$ yo marionette:model model-name --inherit model-name

does not seem to work. It always extends from Backbone.Model.

Looking at the code (model/index.js), 'inherit' is a positional argument, not an option? If I grok the code with the NamedBase correctly, it means that the generator takes three positional arguments: name, model and inherit. Testing this with the command

$ yo marionette:model bar dummy foo

I finally get an app/scripts/models/bar.js that extends from models/foo as Foo.

code-surfer avatar Mar 31 '14 17:03 code-surfer

in the works to fix this. Should be soon :).

mrichard avatar Apr 16 '14 22:04 mrichard