code: public static void main(final String[] args) {
          Switch about = new Switch("a", "about", "display about message");
          Switch help = new Switch("h", "help", "display help message");
          FileArgument inputHmlFile = new FileArgument("i", "input-hml-file", "input HML file, default stdin", false);
          FileArgument outputFile = new FileArgument("o", "output-file", "output allele assignment file, default stdout", false);
  
          ArgumentList arguments = new ArgumentList(about, help, inputHmlFile, outputFile);
          CommandLine commandLine = new CommandLine(args);
  
          ExtractExpectedHaploids extractExpectedHaploids = null;
          try
          {
              CommandLineParser.parse(commandLine, arguments);
              if (about.wasFound()) {
                  About.about(System.out);
                  System.exit(0);
              }
              if (help.wasFound()) {
                  Usage.usage(USAGE, null, commandLine, arguments, System.out);
                  System.exit(0);
              }
              extractExpectedHaploids = new ExtractExpectedHaploids(inputHmlFile.getValue(), outputFile.getValue());
          }
          catch (CommandLineParseException | IllegalArgumentException e) {
              Usage.usage(USAGE, e, commandLine, arguments, System.err);
              System.exit(-1);
          }
          try {
              System.exit(extractExpectedHaploids.call());
          }
          catch (Exception e) {
              e.printStackTrace();
              System.exit(1);
          }
      }
docs: Main.
  
  @param args command line args