Class CommandUtils
java.lang.Object
org.apache.bookkeeper.tools.framework.CommandUtils
Utils to process a commander.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprintAvailableCommands(Map<String, Command> commands, PrintStream printer) Print the available commands in commander.static voidprintAvailableFlags(com.beust.jcommander.JCommander commander, PrintStream printer) Print the available flags in commander.static voidprintDescription(PrintStream printer, int firstLineIndent, int indent, String description) static voidprintUsage(PrintStream printer, String usage)
-
Constructor Details
-
CommandUtils
public CommandUtils()
-
-
Method Details
-
printUsage
-
printAvailableFlags
public static void printAvailableFlags(com.beust.jcommander.JCommander commander, PrintStream printer) Print the available flags in commander.- Parameters:
commander- commanderprinter- printer
-
printDescription
public static void printDescription(PrintStream printer, int firstLineIndent, int indent, String description) -
printAvailableCommands
Print the available commands in commander.- Parameters:
commands- commandsprinter- printer
-