Class CliOrGui

java.lang.Object
eu.bandm.tools.util.files.CliOrGui

public class CliOrGui extends Object
Gets file names from command line or a very primitive interactive GUI input
  • Method Details

    • selectOneInputFile

      @Opt public static @Opt File selectOneInputFile(String title, boolean lenient, String[] args)
      Central entry method. When the command line parameters contain strings, then the first is tried as a file name. If not, an interactive swing gui is started.
      Parameters:
      args - the list list strings as found on the command line
      lenient - if more than one command line parameters are allowed