Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

yeoman bin - improve the router and notify about missing init

  • Loading branch information...
commit 8c90aff2a242ea1fedf71f9b053039a685027f74 1 parent f6965c5
Sindre Sorhus sindresorhus authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 cli/bin/yeoman
14 cli/bin/yeoman
View
@@ -40,8 +40,10 @@ function track() {
}
function runInit() {
- // TODO: Init the specified generator
track();
+
+ // TODO: Init the specified generator
+ console.log('init is not yet integrated');
}
function runGrunt() {
@@ -98,12 +100,14 @@ if (flags.version) {
return console.log(pkg.version);
}
-if (cmd === '--help') {
- return console.log(helpScreen());
-}
-
switch (cmd) {
+ case undefined:
+ track();
+ console.log(helpScreen());
+ break;
case 'help':
+ case '--help':
+ process.argv[2] = 'help';
track();
console.log(helpScreen());
break;
Please sign in to comment.
Something went wrong with that request. Please try again.