contrib/objcwrapper: replace `init_with_alloc` by a command line option
[nit.git] / contrib / objcwrapper / src / objcwrapper.nit
index 46a6f70..cc527e7 100644 (file)
@@ -27,7 +27,7 @@ import objc_parser
 var opt_help = new OptionBool("Show this help message", "-h", "--help")
 
 var opts = new OptionContext
-opts.add_option(opt_help, opt_output)
+opts.add_option(opt_help, opt_output, opt_init_as_methods)
 opts.parse(args)
 
 if opts.errors.not_empty or opts.rest.is_empty or opt_help.value then
@@ -64,4 +64,4 @@ for arg in opts.rest do
        v.enter_visit root
 end
 
-g.generator v.model.classes
+g.generate v.model.classes