Man page generator: add documentation about creating language variants (#1058)

This commit is contained in:
Andreas Deininger
2020-05-20 23:17:34 +02:00
committed by Remko Popma
parent 66aa73d567
commit 581ed13fe7

View File

@@ -121,9 +121,12 @@ public class ManPageGenerator {
"See https://asciidoctor.org/docs/user-manual/#man-pages",
"See http://man7.org/linux/man-pages/man7/roff.7.html",
"",
"In order to generate localized man pages, set the target locale by specifying the user.language, user.country, and user.variant system properties.",
"The generated usage help will then contain information retrieved from the resource bundle based on the user locale.",
"",
"Example",
"-------",
" java -cp \"myapp.jar;picocli-4.3.3-SNAPSHOT.jar;picocli-codegen-4.3.3-SNAPSHOT.jar\" " +
" java -Duser.language=de -cp \"myapp.jar;picocli-4.3.3-SNAPSHOT.jar;picocli-codegen-4.3.3-SNAPSHOT.jar\" " +
"picocli.codegen.docgen.manpage.ManPageGenerator my.pkg.MyClass"
}
)