Closed yocontra closed 10 years ago
Agreed 100% about the duplication of logic. I actually have another release in the works that removes options parsing from Liftoff entirely and it is simplifying things a LOT on this end.
Instead you do something like:
cli.launch({
configFile: myargv.gulpfile,
cwd: myargv.cwd,
require: myargv.require
}, cb);
I will have it ready within the week.
as an aside, @jonschlinkert, this change came about as I worked on #8, which is still happening, but a bit further out.
thanks for the update @tkellen! no worries on my end
I think it would be easier if you could grab parsed args off the cli object before calling .launch
Example:
I need to be able to implement a --silent flag that will disable the logging in the 'require' handler, but that data is not accessible until the handleArguments is called. I can parse the arguments myself but it seems like a duplication of logic/processing