Permalink
Browse files

info command: <name> required

  • Loading branch information...
bpierre committed Mar 6, 2013
1 parent 893cfb8 commit f02cfe9240e72944e90c34731d84528665a366d9
Showing with 4 additions and 6 deletions.
  1. +4 −6 bin/component-info
View
@@ -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();

0 comments on commit f02cfe9

Please sign in to comment.