Skip to content

Commit

Permalink
DOC add JapaneseDemo
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Sep 6, 2019
1 parent f787c74 commit 1298e78
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 1298e78

Please sign in to comment.