better output

This commit is contained in:
AJ ONeal 2018-06-08 10:46:18 -06:00
parent 1a77e6f740
commit 4a089756f1
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,6 @@
'use strict';
var pkg = require('../package.json');
console.info(pkg.name, pkg.version);
var url = require('url');
var path = require('path');
@ -68,10 +67,12 @@ function help() {
process.exit(0);
}
var verstr = '' + pkg.name + ' v' + pkg.version;
if (-1 === confIndex) {
confpath = path.join(require('os').homedir(), '.config/telebit/telebit.yml');
console.info('Using default --config "' + confpath + '"');
verstr += ' (--config "' + confpath + '")';
}
console.info(verstr + '\n');
if (-1 !== argv.indexOf('-h') || -1 !== argv.indexOf('--help')) {
help();