mirror of
https://github.com/antonmedv/fx
synced 2024-11-03 15:40:12 +00:00
Add version info
This commit is contained in:
parent
95b40b31b8
commit
07f8e6e18d
4
index.js
4
index.js
@ -48,6 +48,10 @@ function main(input) {
|
||||
stderr.write(usage)
|
||||
process.exit(2)
|
||||
}
|
||||
if (args.length === 1 && (args[0] === '-v' || args[0] === '--version')) {
|
||||
stderr.write(require('./package.json').version + '\n')
|
||||
process.exit(2)
|
||||
}
|
||||
|
||||
input = fs.readFileSync(args[0])
|
||||
filename = path.basename(args[0])
|
||||
|
Loading…
Reference in New Issue
Block a user