Class AIGenArgumentList


  • public class AIGenArgumentList
    extends Object
    A set of arguments that is either given on command line, from the environment or otherwise given, or read from a config file. There are often several such argument sets stacked on each other.
    • Field Detail

      • cfgFile

        @Nullable
        protected final File cfgFile
        If it is from a configuration file.
      • args

        @Nonnull
        protected final String[] args
        The actual arguments in series.
    • Constructor Detail

      • AIGenArgumentList

        public AIGenArgumentList​(@Nonnull
                                 String[] args)
        Unrelated to file.
        Parameters:
        args - the arguments
      • AIGenArgumentList

        public AIGenArgumentList​(@Nonnull
                                 File cfgFile)
        Reads the arguments from a file.
        Parameters:
        cfgFile - the file to read from
    • Method Detail

      • getCfgFile

        @Nullable
        public File getCfgFile()
      • getArgs

        @Nonnull
        public String[] getArgs()
      • hasArgument

        public boolean hasArgument​(String shortform,
                                   String longform)