-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import picocli.CommandLine; | ||
import picocli.CommandLine.Command; | ||
import picocli.CommandLine.Option; | ||
import picocli.CommandLine.Parameters; | ||
|
||
@Command(name = "ASCIIArt", version = "ASCIIArt 1.0", mixinStandardHelpOptions = true) | ||
public class ASCIIArt implements Runnable { | ||
|
||
@Option(names = { "-s", "--font-size" }, description = "Font size") | ||
int fontSize = 19; | ||
|
||
@Parameters(paramLabel = "<word>", defaultValue = "Hello, picocli", | ||
description = "Words to be translated into ASCII art.") | ||
private String[] words = { "Hello,", "picocli" }; | ||
|
||
@Override | ||
public void run() { | ||
System.out.println(java.util.List.of(words)); | ||
} | ||
|
||
public static void main(String[] args) { | ||
int exitCode = new CommandLine(new ASCIIArt()).execute(args); | ||
System.exit(exitCode); | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters