From 1298e78d6f43406fe1ea6ad191259430c55aa24f Mon Sep 17 00:00:00 2001 From: Remko Popma Date: Fri, 6 Sep 2019 21:49:52 +0900 Subject: [PATCH] DOC add JapaneseDemo --- .../picocli/examples/cjk/JapaneseDemo.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 picocli-examples/src/main/java/picocli/examples/cjk/JapaneseDemo.java diff --git a/picocli-examples/src/main/java/picocli/examples/cjk/JapaneseDemo.java b/picocli-examples/src/main/java/picocli/examples/cjk/JapaneseDemo.java new file mode 100644 index 000000000..c9d9e7457 --- /dev/null +++ b/picocli-examples/src/main/java/picocli/examples/cjk/JapaneseDemo.java @@ -0,0 +1,18 @@ +// This file is in UTF-8 encoding and contains Japanese characters. + +package picocli.examples.cjk; + +import picocli.CommandLine; +import picocli.CommandLine.Command; + +@Command(name = "日本語対応デモ", mixinStandardHelpOptions = true, usageHelpWidth = 60, + description = {"123456789012345678901234567890123456789012345678901234567890", + "123456789012345678901234567890", + "@|red 漢字|@、@|green ひらがな|@、@|blue カタカナ|@などはローマ字よりも幅が長い。Picocliはそういう文字に@|bold,blink 2倍の幅|@を与えます。"}) +public class JapaneseDemo implements Runnable { + @Override public void run() { } + + public static void main(String[] args) { + new CommandLine(new JapaneseDemo()).execute(args); + } +} \ No newline at end of file