Skip to content

Commit

Permalink
Make --version less verbose
Browse files Browse the repository at this point in the history
When calling "jspm --version" only the version number and the
information if jspm is running against a global or local install gets
now printed.
  • Loading branch information
subesokun committed Dec 9, 2014
1 parent 735b1e4 commit 4dd5974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions cli.js
Expand Up @@ -101,10 +101,8 @@ process.on('uncaughtException', function(err) {
}

function showVersion() {
showHeader();
ui.log('\n'
+ 'Version: ' + require('./package.json').version + '\n'
+ (process.env.localJspm == 'true' ? 'Running against local jspm install.' : 'Running against global jspm install.') + '\n'
ui.log(require('./package.json').version + '\n'
+ (process.env.localJspm == 'true' ? 'Running against local jspm install.' : 'Running against global jspm install.')
);
}

Expand Down
2 changes: 0 additions & 2 deletions lib/ui.js
Expand Up @@ -44,8 +44,6 @@ var log = exports.log = function(type, msg) {
if (apiResolver)
return apiResolver.emit('log', type, msg);

if (logged == false)
console.log('');
logged = true;
if (arguments.length == 1) {
msg = type;
Expand Down

0 comments on commit 4dd5974

Please sign in to comment.