Class QCommandHelpFormatting
java.lang.Object
com.io7m.quarrel.core.QCommandHelpFormatting
Standard functions to format help messages.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidformatCommand(QValueConverterDirectoryType valueConverters, QLocalizationType localization, String applicationName, PrintWriter output, QCommandType command) Format a help message for the given command to the given output.static voidformatGroup(QValueConverterDirectoryType valueConverters, QLocalizationType localization, String applicationName, PrintWriter output, QCommandGroupType group, List<String> path) Format a help message for the given group to the given output.
-
Method Details
-
formatGroup
public static void formatGroup(QValueConverterDirectoryType valueConverters, QLocalizationType localization, String applicationName, PrintWriter output, QCommandGroupType group, List<String> path) Format a help message for the given group to the given output.- Parameters:
valueConverters- The value converterslocalization- The localization contextapplicationName- The application nameoutput- The outputgroup- The grouppath- The group's path
-
formatCommand
public static void formatCommand(QValueConverterDirectoryType valueConverters, QLocalizationType localization, String applicationName, PrintWriter output, QCommandType command) throws QException Format a help message for the given command to the given output.- Parameters:
valueConverters- The value converterslocalization- The localization contextapplicationName- The application nameoutput- The outputcommand- The command- Throws:
QException
-