diff --git a/lib/args.js b/lib/args.js index 9172a93..9ab1dae 100644 --- a/lib/args.js +++ b/lib/args.js @@ -13,19 +13,6 @@ const logo = ` //_____||___*_________*___||_____// ` -const cli = require('../package.json').version -const version = chalk.bold.red(` - /|\\ - // // - // // - //___*___*___// - //--*---------*--// - /|| * * ||/ - // ||* v${cli} *|| // - // || * * || // - //_____||___*_________*___||_____// -`) - module.exports = require('yargs') .usage( `${chalk.bold.red(logo)} @@ -125,7 +112,6 @@ Usage: desc: 'Set a custom directory to look for a config file', type: 'string', }) - .version(version) .alias('h', 'help') .example('$0 input.css -o output.css', 'Basic usage') .example('$0 src/**/*.css --base src --dir build', 'Glob Pattern & output') diff --git a/test/misc.js b/test/misc.js index 1c1084e..29a736c 100644 --- a/test/misc.js +++ b/test/misc.js @@ -16,7 +16,7 @@ test('--version', async (t) => { t.falsy(version.error) t.truthy( - version.stdout.length > 10, + version.stdout.length > 5, 'expected --version to output version info' ) })