We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66b7c80 commit 2e64c9cCopy full SHA for 2e64c9c
lib/args.js
@@ -1,4 +1,5 @@
1
import yargs from 'yargs'
2
+import fs from 'fs-extra'
3
4
const { argv } = yargs(process.argv.slice(2))
5
.usage(
@@ -94,6 +95,8 @@ const { argv } = yargs(process.argv.slice(2))
94
95
type: 'string',
96
})
97
.alias('h', 'help')
98
+ // HACK: Workaround for https://github.com/yargs/yargs/issues/1934
99
+ .version(fs.readJSONSync(new URL('../package.json', import.meta.url).pathname).version)
100
.example('$0 input.css -o output.css', 'Basic usage')
101
.example('$0 src/**/*.css --base src --dir build', 'Glob Pattern & output')
102
.example(
0 commit comments