Update Generate.java (#6515)

Removed missed -D messages
This commit is contained in:
Jim Schubert 2020-06-01 21:08:50 -04:00 committed by GitHub
parent f91a5f7108
commit 58ed6afc0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ public class Generate extends OpenApiGeneratorCommand {
@Option(name = {"--log-to-stderr"}, @Option(name = {"--log-to-stderr"},
title = "Log to STDERR", title = "Log to STDERR",
description = "write all log messages (not just errors) to STDOUT." description = "write all log messages (not just errors) to STDOUT."
+ " Useful for piping the JSON output of debug options (e.g. `-DdebugOperations`) to an external parser directly while testing a generator.") + " Useful for piping the JSON output of debug options (e.g. `--global-property debugOperations`) to an external parser directly while testing a generator.")
private Boolean logToStderr; private Boolean logToStderr;
@Option(name = {"--enable-post-process-file"}, title = "enable post-process file", description = CodegenConstants.ENABLE_POST_PROCESS_FILE_DESC) @Option(name = {"--enable-post-process-file"}, title = "enable post-process file", description = CodegenConstants.ENABLE_POST_PROCESS_FILE_DESC)
@ -407,7 +407,6 @@ public class Generate extends OpenApiGeneratorCommand {
} }
if (globalProperties != null && !globalProperties.isEmpty()) { if (globalProperties != null && !globalProperties.isEmpty()) {
System.err.println("[DEPRECATED] -D arguments after 'generate' are application arguments and not Java System Properties, please consider changing to --global-property, apply your system properties to JAVA_OPTS, or move the -D arguments before the jar option.");
applyGlobalPropertiesKvpList(globalProperties, configurator); applyGlobalPropertiesKvpList(globalProperties, configurator);
} }
applyInstantiationTypesKvpList(instantiationTypes, configurator); applyInstantiationTypesKvpList(instantiationTypes, configurator);