We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85a6735 commit 95c9281Copy full SHA for 95c9281
codegen.js
@@ -27,10 +27,11 @@ const main = async () => {
27
* v: when true, view will be generated; default to true
28
* V: when true, view will not be genereated
29
*/
30
- let { name = 'comp', v = true, V } = getArgs();
+ let { name, v = true, V } = getArgs();
31
32
- // Make sure user gives name
33
- if (name === 'comp') {
+ // Make sure name has a value
+ while (!name) {
34
+ console.log('Component name is NOT found!');
35
name = await askQuestion('Name of the Component?');
36
}
37
0 commit comments