Class CommandLineExportParser

java.lang.Object
lu.kbra.modelizer_next.cmdline.CommandLineExportParser

public final class CommandLineExportParser extends Object
Parses and validates command-line arguments for unattended exports.
  • Method Details

    • isExportRequest

      public static boolean isExportRequest(String[] args)
      Checks whether export request is enabled or applies.
      Parameters:
      args - command-line arguments supplied by the launcher
      Returns:
      true if export request is enabled or applies; otherwise false
    • parse

      public static CommandLineExportOptions parse(String[] args) throws IOException
      Parses the supplied text into the value type used by this class.
      Parameters:
      args - command-line arguments supplied by the launcher
      Returns:
      the parsed value
      Throws:
      IOException - if the operation cannot be completed
    • resolveHome

      public static Path resolveHome(String path)
      Resolves the home from the current model and layout state.
      Parameters:
      path - file system path to read or write
      Returns:
      the resolved home
    • printHelp

      public static void printHelp()
      Prints the help.