Display help if CLI is launched without an url

This commit is contained in:
Gaël Métais
2015-05-07 23:16:13 +02:00
parent 5b5fb3e32d
commit eaeff3bf6a
+1 -2
View File
@@ -28,8 +28,7 @@ var cli = meow({
// Check parameters
if (cli.input.length < 1) {
console.error('Incorrect parameters: url not provided');
process.exit(1);
cli.showHelp();
}
var url = cli.input[0];