@adonisjs/ace
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -0,1 +1,16 @@ | ||
<a name="4.0.2"></a> | ||
## [4.0.2](https://github.com/adonisjs/ace/compare/v4.0.1...v4.0.2) (2017-07-17) | ||
### Bug Fixes | ||
* **kernel:** use commander.command over commander.on ([09a25ad](https://github.com/adonisjs/ace/commit/09a25ad)) | ||
### Features | ||
* **kernel:** show help when no command is executed ([0e65c76](https://github.com/adonisjs/ace/commit/0e65c76)) | ||
<a name="4.0.1"></a> | ||
@@ -2,0 +17,0 @@ ## [4.0.1](https://github.com/adonisjs/ace/compare/v4.0.0...v4.0.1) (2017-07-16) |
{ | ||
"name": "@adonisjs/ace", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Ace is a command line tool for adonisjs framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -272,2 +272,8 @@ 'use strict' | ||
process.env.NO_ANSI = 'false' | ||
const commandName = process.argv.slice(2) | ||
if (!commandName || !commandName[0]) { | ||
return commander.outputHelp() | ||
} | ||
commander.parse(process.argv) | ||
@@ -331,6 +337,8 @@ } | ||
*/ | ||
commander.on('*', function (args) { | ||
console.log(`\n error: \`${args[0]}\` is not a registered command \n`) | ||
process.exit(1) | ||
}) | ||
commander | ||
.command('*') | ||
.action(function (command) { | ||
console.log(`\n error: \`${command}\` is not a registered command \n`) | ||
process.exit(1) | ||
}) | ||
@@ -337,0 +345,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176680
1796