Skip to content

Commit 58ed6af

Browse files
authored
Update Generate.java (#6515)
Removed missed -D messages
1 parent f91a5f7 commit 58ed6af

File tree

1 file changed

+1
-2
lines changed
  • modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd

1 file changed

+1
-2
lines changed

modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public class Generate extends OpenApiGeneratorCommand {
230230
@Option(name = {"--log-to-stderr"},
231231
title = "Log to STDERR",
232232
description = "write all log messages (not just errors) to STDOUT."
233-
+ " Useful for piping the JSON output of debug options (e.g. `-DdebugOperations`) to an external parser directly while testing a generator.")
233+
+ " Useful for piping the JSON output of debug options (e.g. `--global-property debugOperations`) to an external parser directly while testing a generator.")
234234
private Boolean logToStderr;
235235

236236
@Option(name = {"--enable-post-process-file"}, title = "enable post-process file", description = CodegenConstants.ENABLE_POST_PROCESS_FILE_DESC)
@@ -407,7 +407,6 @@ public void execute() {
407407
}
408408

409409
if (globalProperties != null && !globalProperties.isEmpty()) {
410-
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.");
411410
applyGlobalPropertiesKvpList(globalProperties, configurator);
412411
}
413412
applyInstantiationTypesKvpList(instantiationTypes, configurator);

0 commit comments

Comments
 (0)