From b404813d0f4dccdf72f68a91249e1a0a7ce1ad11 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 8 Jun 2018 10:46:18 -0600 Subject: [PATCH] better output --- bin/telebit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/telebit.js b/bin/telebit.js index f840f97..2511214 100755 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -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();