forked from loafle/openapi-generator-original
Use defaultValue for the usePromise CliOption
This commit is contained in:
parent
aab96ec772
commit
dd29cf9d53
@ -83,7 +83,8 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
cliOptions.add(new CliOption(PROJECT_LICENSE_NAME,
|
cliOptions.add(new CliOption(PROJECT_LICENSE_NAME,
|
||||||
"name of the license the project uses (Default: using info.license.name)"));
|
"name of the license the project uses (Default: using info.license.name)"));
|
||||||
cliOptions.add(new CliOption(USE_PROMISES,
|
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
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user