public class ArgumentOptions extends Object
| Constructor and Description |
|---|
ArgumentOptions(STTY tty) |
| Modifier and Type | Method and Description |
|---|---|
static ArgumentOptions |
defaults() |
static ArgumentOptions |
defaults(STTY tty) |
boolean |
getDefaultsShown() |
Comparator<BaseOption> |
getOptionComparator() |
int |
getUsageWidth() |
ArgumentOptions |
withDefaultsShown(boolean show)
Set whether the default values should be printed in usage.
|
ArgumentOptions |
withMaxUsageWidth(int maxWidth)
Set the maximum usage width.
|
ArgumentOptions |
withOptionComparator(Comparator<BaseOption> comparator) |
ArgumentOptions |
withUsageWidth(int usageWidth)
Set the number of columns to be used for usage printing.
|
public ArgumentOptions(STTY tty)
public static ArgumentOptions defaults()
public static ArgumentOptions defaults(STTY tty)
public ArgumentOptions withDefaultsShown(boolean show)
show - If the default values should be printed.public boolean getDefaultsShown()
public ArgumentOptions withUsageWidth(int usageWidth)
usageWidth - The number of columns.public ArgumentOptions withMaxUsageWidth(int maxWidth)
maxWidth - The maximum width.public int getUsageWidth()
public ArgumentOptions withOptionComparator(Comparator<BaseOption> comparator)
public Comparator<BaseOption> getOptionComparator()
Copyright © 2016. All rights reserved.