From f04e071ace44999f9367b55dcc15cb3130eaa04f Mon Sep 17 00:00:00 2001 From: Piotr Dabrowski Date: Wed, 10 Jul 2024 16:18:11 +0200 Subject: [PATCH] fix: last few issues with default CLI values --- package.json | 2 +- src/cli.ts | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 807f4fe..7f2e7f2 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/cli.ts b/src/cli.ts index 06dbe46..3ea5a38 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -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 ', - 'Base URL that will be used as a default value in the clients', - '' - ) + .option('-b, --baseUrl ', 'Base URL that will be used as a default value in the clients') .option('-t, --template ', '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 ', - '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 ',