Skip to content

Commit

Permalink
fix: last few issues with default CLI values
Browse files Browse the repository at this point in the history
  • Loading branch information
yhnavein committed Jul 10, 2024
1 parent 33cf740 commit f04e071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swaggie",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "Generate TypeScript REST client code from an OpenAPI spec",
"author": {
"name": "Piotr Dabrowski",
Expand Down
11 changes: 3 additions & 8 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,12 @@ program
'The path to the file where the API would be generated. Use stdout if left empty',
process.env.OPEN_API_OUT
)
.option(
'-b, --baseUrl <string>',
'Base URL that will be used as a default value in the clients',
''
)
.option('-b, --baseUrl <string>', 'Base URL that will be used as a default value in the clients')
.option('-t, --template <string>', 'Template used forgenerating API client. Default: "axios"')
.option('--preferAny', 'Use "any" type instead of "unknown"', false)
.option('--preferAny', 'Use "any" type instead of "unknown"')
.option(
'--servicePrefix <string>',
'Prefix for service names. Useful when you have multiple APIs and you want to avoid name collisions',
''
'Prefix for service names. Useful when you have multiple APIs and you want to avoid name collisions'
)
.option(
'--allowDots <bool>',
Expand Down

0 comments on commit f04e071

Please sign in to comment.