| Package | Description |
|---|---|
| net.morimekta.console.args |
| Modifier and Type | Method and Description |
|---|---|
static ArgumentOptions |
ArgumentOptions.defaults() |
static ArgumentOptions |
ArgumentOptions.defaults(STTY tty) |
ArgumentOptions |
ArgumentOptions.withDefaultsShown(boolean show)
Set whether the default values should be printed in usage.
|
ArgumentOptions |
ArgumentOptions.withMaxUsageWidth(int maxWidth)
Set the maximum usage width.
|
ArgumentOptions |
ArgumentOptions.withOptionComparator(Comparator<BaseOption> comparator) |
ArgumentOptions |
ArgumentOptions.withUsageWidth(int usageWidth)
Set the number of columns to be used for usage printing.
|
| Constructor and Description |
|---|
ArgumentParser(String program,
String version,
String description,
ArgumentOptions argumentOptions)
Create an argument argumentParser instance.
|
SubCommandSet(String name,
String usage,
Consumer<SubCommandDef> consumer,
String defaultValue,
boolean required,
ArgumentOptions options)
Create an optional sub-command set.
|
Copyright © 2016. All rights reserved.