Skip to content

Commit 27ea826

Browse files
committed
fix: version argument warning
Fixes the warning: ``` node:20372) Warning: "version" is a reserved word. Please do one of the following: - Disable version with `yargs.version(false)` if using "version" as an option - Use the built-in `yargs.version` method instead (if applicable) - Use a different option key https://yargs.js.org/docs/#api-reference-version ```
1 parent 7bb7b9b commit 27ea826

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cli.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import packageJson from "../package.json";
77

88
const conf = yargs(process.argv.slice(2))
99
.version(packageJson.version)
10+
.alias("version", "v")
1011
.usage("wsdl-tsclient [options] [path]")
1112
.example("", "wsdl-tsclient file.wsdl -o ./generated/")
1213
.example("", "wsdl-tsclient ./res/**/*.wsdl -o ./generated/")
@@ -15,10 +16,6 @@ const conf = yargs(process.argv.slice(2))
1516
type: "string",
1617
description: "Output directory for generated TypeScript client",
1718
})
18-
.option("version", {
19-
alias: "v",
20-
type: "boolean",
21-
})
2219
.option("emitDefinitionsOnly", {
2320
type: "boolean",
2421
description: "Generate definitions only (interfaces and types)",

0 commit comments

Comments
 (0)