Skip to content

Commit ecd7e02

Browse files
committed
fix: add description to genapi command and mark input argument as optional
1 parent 94da76e commit ecd7e02

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/core/src/cli/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ let isInitCommand = false
1111
const main = defineCommand({
1212
meta: {
1313
name: 'genapi',
14+
description: 'Generate API client from OpenAPI/Swagger',
1415
version: parser.getVersion(),
1516
},
1617
args: {
@@ -21,6 +22,7 @@ const main = defineCommand({
2122
input: {
2223
type: 'positional',
2324
description: 'The incoming string resolves to a uri or json path.',
25+
required: false,
2426
},
2527
outfile: {
2628
type: 'string',

0 commit comments

Comments
 (0)