public class CommandLineParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static Supplier<String> |
DEFAULT_PROMPTER |
PrintStream |
output |
| Constructor and Description |
|---|
CommandLineParser() |
CommandLineParser(PrintStream output) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(BiConsumer<CommandLineParser,String> handler) |
static CommandLineParser |
newInstance() |
static CommandLineParser |
newInstance(PrintStream output) |
CommandLineParser |
setPrompt(String prompt) |
CommandLineParser |
setPrompt(Supplier<String> prompter) |
CommandLineParser |
stop() |
public final PrintStream output
public CommandLineParser(PrintStream output)
public CommandLineParser()
public static CommandLineParser newInstance(PrintStream output)
public static CommandLineParser newInstance()
public CommandLineParser setPrompt(Supplier<String> prompter)
public CommandLineParser setPrompt(String prompt)
public CommandLineParser stop()
public void execute(BiConsumer<CommandLineParser,String> handler)
Copyright © 2025. All rights reserved.