Permalink
Browse files

Better hiding of the complete warning

  • Loading branch information...
1 parent 03070ce commit b62d90a870001d2a1569d0c3915dcc32fbae06f3 @davglass davglass committed Apr 5, 2013
Showing with 8 additions and 7 deletions.
  1. +8 −7 bin/yogi.js
View
@@ -8,6 +8,11 @@ http://yuilibrary.com/license/
var args = require('../lib/args');
var log = require('../lib/log');
+var config = require('../lib/config');
+var which = require('which');
+var spawn = require('win-spawn');
+var path = require('path');
+var options = args.parse();
try {
@@ -46,16 +51,12 @@ try {
} catch (e) {
log.debug('Failed to setup tab-completion module');
- console.log(e);
+ if (options.parsed.loglevel === 'debug') {
+ console.log(e);
+ }
}
-var config = require('../lib/config');
-var which = require('which');
-var spawn = require('win-spawn');
-var path = require('path');
-
-var options = args.parse();
config.init(options);
var version = require('../lib/cmds/version');
if (options.main && options.main !== 'version') {

0 comments on commit b62d90a

Please sign in to comment.