forked from webpack/webpack-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.ts
48 lines (47 loc) · 1.04 KB
/
options.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import * as yargs from "yargs";
export const argv = yargs
.option("system", {
alias: "sys",
demandOption: false,
describe: "System information (OS, CPU)",
type: "boolean",
})
.option("binaries", {
alias: "bin",
demandOption: false,
describe: "Installed binaries",
type: "boolean",
})
.option("browsers", {
demandOption: false,
describe: "Installed web browsers",
type: "boolean",
})
.option("npmg", {
demandOption: false,
describe: "Globally installed NPM packages (webpack & webpack-cli only)",
type: "boolean",
})
.option("npmPackages", {
demandOption: false,
describe: "Info about webpack installed in the project",
type: "boolean",
})
.option("json", {
demandOption: false,
describe: "To get the output as JSON",
type: "boolean",
})
.option("json", {
demandOption: false,
describe: "To get the output as JSON",
type: "boolean",
})
.option("markdown", {
demandOption: false,
describe: "To get the output as markdown",
type: "boolean",
})
.group(["json", "markdown"], `Output format`)
.argv
;