@lexjs/web 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import yargs from 'yargs';
|
|
2
2
|
import { hideBin } from 'yargs/helpers';
|
|
3
|
+
import { getPackageInfo } from '../../utils/get-package-info.js';
|
|
3
4
|
import { ConfigOptions as Options } from '../options.js';
|
|
5
|
+
const version = getPackageInfo().version;
|
|
4
6
|
export const configArgs = yargs(hideBin(process.argv))
|
|
5
7
|
.option(Options.Config, {
|
|
6
8
|
type: 'boolean',
|
|
7
9
|
})
|
|
8
10
|
.help(false)
|
|
11
|
+
.version(version)
|
|
9
12
|
.parseSync();
|
|
@@ -2,9 +2,7 @@ import yargs from 'yargs';
|
|
|
2
2
|
import { hideBin } from 'yargs/helpers';
|
|
3
3
|
import { matchers } from '../../api/matchers/matchers.js';
|
|
4
4
|
import { configFlags } from '../../config/config-flags.js';
|
|
5
|
-
import { getPackageInfo } from '../../utils/get-package-info.js';
|
|
6
5
|
import { QueryOptions as Options, queryAlias as alias, queryOptions as options, queryOptionTypes as types, } from '../options.js';
|
|
7
|
-
const version = getPackageInfo().version;
|
|
8
6
|
const group = {
|
|
9
7
|
browser: 'Browser Options:',
|
|
10
8
|
site: 'Site Options:',
|
|
@@ -85,7 +83,6 @@ const parsed = yargs(hideBin(process.argv))
|
|
|
85
83
|
}
|
|
86
84
|
})
|
|
87
85
|
.help()
|
|
88
|
-
.version(version)
|
|
89
86
|
.hide('help')
|
|
90
87
|
.hide('version')
|
|
91
88
|
.boolean(configFlags.filter((flag) => !options.includes(flag)))
|