Class FileOption


  • public class FileOption
    extends StringOption
    Author:
    Giles Winstanley
    • Constructor Detail

      • FileOption

        public FileOption​(String shortName,
                          String longName,
                          String description,
                          int minCount,
                          int maxCount)
        Creates a new FileOption instance.
        Parameters:
        shortName - short name of the option (e.g. -t)
        longName - long name of the option (e.g. --type)
        description - helpful description of the option (printed for usage message)
        minCount - minimum number of occurrences required for this option
        maxCount - maximum number of occurrences required for this option
      • FileOption

        public FileOption​(String shortName,
                          String longName,
                          String description,
                          boolean mandatory,
                          boolean allowMany)
        Creates a new FileOption instance.
        Parameters:
        shortName - short name of the option (e.g. -t)
        longName - long name of the option (e.g. --type)
        description - helpful description of the option (printed for usage message)
        mandatory - whether this option must be specified
        allowMany - whether this option can take more than one value (i.e. be specified more than once)