Class CLIHelper

java.lang.Object
eu.svjatoslav.commons.cli_helper.CLIHelper

public class CLIHelper extends Object
Command-line interface helper.
  • Constructor Details

    • CLIHelper

      public CLIHelper()
  • Method Details

    • askBoolean

      public static boolean askBoolean(String prompt)
      Ask boolean value from user on command-line.
      Parameters:
      prompt - to show to the user
      Returns:
      true is user answered affirmative.
    • askLong

      public static long askLong(String prompt)
      Ask numerical long value from user on command-line.
      Parameters:
      prompt - to show to the user
      Returns:
      value given by user
    • askString

      public static String askString(String prompt)
      Ask string value from user on command-line.
      Parameters:
      prompt - to show to the user
      Returns:
      value given by the user