From dd29cf9d53b4e100275e243b0c83d5c3ea3325e2 Mon Sep 17 00:00:00 2001 From: delenius Date: Tue, 9 Feb 2016 07:35:45 -0800 Subject: [PATCH] Use defaultValue for the usePromise CliOption --- .../io/swagger/codegen/languages/JavascriptClientCodegen.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java index 20c7fc62e6..5bde96b68b 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java @@ -83,7 +83,8 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo cliOptions.add(new CliOption(PROJECT_LICENSE_NAME, "name of the license the project uses (Default: using info.license.name)")); cliOptions.add(new CliOption(USE_PROMISES, - "use Promises as return values from the client API, instead of superagent callbacks (Default: false)")); + "use Promises as return values from the client API, instead of superagent callbacks") + .defaultValue(Boolean.FALSE.toString())); } @Override