From 6b5ec2e6f6bbd15d024f0a6c21e7f7c339db9ac0 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Mon, 9 Aug 2021 16:15:14 +0200 Subject: [PATCH] Command mode apps - fix the restart key in the docs - also mention the dev mode in the picocli guide --- docs/src/main/asciidoc/command-mode-reference.adoc | 2 +- docs/src/main/asciidoc/picocli.adoc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/command-mode-reference.adoc b/docs/src/main/asciidoc/command-mode-reference.adoc index 41bf602acc503..afa26af12498e 100644 --- a/docs/src/main/asciidoc/command-mode-reference.adoc +++ b/docs/src/main/asciidoc/command-mode-reference.adoc @@ -114,7 +114,7 @@ in order to unblock the main thread and initiate the shutdown process. === Dev mode -Also for command mode applications the dev mode is supported. When running `mvn compile quarkus:dev`, the command mode application is executed and on press of the Enter key, is restarted. +Also for command mode applications the dev mode is supported. When running `mvn compile quarkus:dev`, the command mode application is executed and on press of the `Space bar` key, is restarted. As command mode applications will often require arguments to be passed on the commandline, this is also possible in dev mode via: diff --git a/docs/src/main/asciidoc/picocli.adoc b/docs/src/main/asciidoc/picocli.adoc index e53b179c272cf..7e9881c49b980 100644 --- a/docs/src/main/asciidoc/picocli.adoc +++ b/docs/src/main/asciidoc/picocli.adoc @@ -290,6 +290,10 @@ annotationProcessor enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatfor 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'`. + == Configuration Reference include::{generated-dir}/config/quarkus-picocli.adoc[opts=optional, leveloffset=+1]