Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

info command: <name> required

  • Loading branch information...
commit f02cfe9240e72944e90c34731d84528665a366d9 1 parent 893cfb8
@bpierre bpierre authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 bin/component-info
View
10 bin/component-info
@@ -6,8 +6,6 @@
var program = require('commander')
, component = require('..')
- , fs = require('fs')
- , exists = fs.existsSync
, utils = component.utils;
// usage
@@ -31,14 +29,14 @@ program.on('--help', function(){
program.parse(process.argv);
-// component.json required
-
-if (!exists('component.json')) utils.fatal('missing component.json');
-
// package
var pkg = program.args.shift();
+// required
+
+if (!pkg) utils.fatal('<name> required');
+
// props
var props = program.args.shift();
Please sign in to comment.
Something went wrong with that request. Please try again.