From 242bba8798a5f3a7b83b4ef5d6102a3553f0d598 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 24 Sep 2024 13:51:47 +0200 Subject: [PATCH] Small followup for Picocli + Gradle improvement Follow up on https://github.com/quarkusio/quarkus/pull/43407 --- docs/src/main/asciidoc/picocli.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/picocli.adoc b/docs/src/main/asciidoc/picocli.adoc index 952950a82e007..2545b9f81bdd9 100644 --- a/docs/src/main/asciidoc/picocli.adoc +++ b/docs/src/main/asciidoc/picocli.adoc @@ -297,7 +297,9 @@ annotationProcessor 'info.picocli:picocli-codegen' == Development Mode -In the development mode, i.e. when running `mvn quarkus:dev`, the application is executed and restarted every time the `Space bar` key is pressed. You can also pass arguments to your command line app via the `quarkus.args` system property, e.g. `mvn quarkus:dev -Dquarkus.args='--help'` and `mvn quarkus:dev -Dquarkus.args='-c -w --val 1'`. For gradle project arguments can be passed using `--quarkus-args`. +In the development mode, i.e. when running `mvn quarkus:dev`, the application is executed and restarted every time the `Space bar` key is pressed. You can also pass arguments to your command line app via the `quarkus.args` system property, e.g. `mvn quarkus:dev -Dquarkus.args='--help'` and `mvn quarkus:dev -Dquarkus.args='-c -w --val 1'`. +For Gradle projects, arguments can be passed using `--quarkus-args`. + [NOTE] ==== If you're creating a typical Quarkus application (e.g., HTTP-based services) that includes command-line functionality, you'll need to handle the application's lifecycle differently. In the `Runnable.run()` method of your command, make sure to use `Quarkus.waitForExit()` or `Quarkus.asyncExit()`. This will prevent the application from shutting down prematurely and ensure a proper shutdown process.