Skip to content

Commit

Permalink
Explicitly configure ava --version vaule
Browse files Browse the repository at this point in the history
Fixes #2942.
  • Loading branch information
novemberborn committed Feb 6, 2022
1 parent 18c04f9 commit eb2dc5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cli.js
Expand Up @@ -21,6 +21,7 @@ import {splitPatternAndLineNumbers} from './line-numbers.js';
import {loadConfig} from './load-config.js';
import normalizeModuleTypes from './module-types.js';
import normalizeNodeArguments from './node-arguments.js';
import pkg from './pkg.cjs';
import providerManager from './provider-manager.js';
import DefaultReporter from './reporters/default.js';
import TapReporter from './reporters/tap.js';
Expand Down Expand Up @@ -132,6 +133,7 @@ export default async function loadCli() { // eslint-disable-line complexity

let resetCache = false;
const {argv} = yargs(hideBin(process.argv))
.version(pkg.version)
.parserConfiguration({
'boolean-negation': true,
'camel-case-expansion': false,
Expand Down

0 comments on commit eb2dc5f

Please sign in to comment.