CVarisco / create-component-app

Tool to generate different types of React components from the terminal. 💻
MIT License
859 stars 58 forks source link

Fix template arg not being read according to documentation #40

Closed mosanger closed 7 years ago

mosanger commented 7 years ago

according to docs a template can by used by using the -t option. the script tries to read out a template argument.

So I adjusted the code to use both, either --template=classic or -t classic

also a bit of refactoring to startTemplateGenerator with a given template...