fix: set exit code to zero when fx --version (#148)

As it's the current convention.
pull/149/head
Sébastien HOUZÉ 4 years ago committed by GitHub
parent 3e0cc4f61b
commit 2315f509b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,7 +79,7 @@ function handle(input) {
}
if (args.length === 1 && (args[0] === '-v' || args[0] === '--version')) {
stderr.write(require('./package.json').version + '\n')
process.exit(2)
process.exit(0)
}
if (args.length === 1 && args[0] === '--life') {
require('./bang')

Loading…
Cancel
Save