Skip to content

Commit a78dfc9

Browse files
authored
Merge pull request #39 from reload/misc
fix: version argument warning
2 parents 7bb7b9b + 27ea826 commit a78dfc9

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)