Skip to content
This repository
Browse code

Better hiding of the complete warning

  • Loading branch information...
commit b62d90a870001d2a1569d0c3915dcc32fbae06f3 1 parent 03070ce
Dav Glass authored April 05, 2013

Showing 1 changed file with 8 additions and 7 deletions. Show diff stats Hide diff stats

  1. 15  bin/yogi.js
15  bin/yogi.js
@@ -8,6 +8,11 @@ http://yuilibrary.com/license/
8 8
 
9 9
 var args = require('../lib/args');
10 10
 var log = require('../lib/log');
  11
+var config = require('../lib/config');
  12
+var which = require('which');
  13
+var spawn = require('win-spawn');
  14
+var path = require('path');
  15
+var options = args.parse();
11 16
 
12 17
 try {
13 18
 
@@ -46,16 +51,12 @@ try {
46 51
 
47 52
 } catch (e) {
48 53
     log.debug('Failed to setup tab-completion module');
49  
-    console.log(e);
  54
+    if (options.parsed.loglevel === 'debug') {
  55
+        console.log(e);
  56
+    }
50 57
 }
51 58
 
52  
-var config = require('../lib/config');
53  
-var which = require('which');
54  
-var spawn = require('win-spawn');
55  
-var path = require('path');
56  
-
57 59
 
58  
-var options = args.parse();
59 60
 config.init(options);
60 61
 var version = require('../lib/cmds/version');
61 62
 if (options.main && options.main !== 'version') {

0 notes on commit b62d90a

Please sign in to comment.
Something went wrong with that request. Please try again.