code: public static Status mainWithInputRedirection(String[] args,
        InputStream inputStream) throws IOException {
      return start(args, inputStream, false);
    }
docs: Starts the program with redirected input.
  
  <p>For redirected output, use {@link #setOutputStream} and
  {@link #setErrorStream}.
  
  <p>Exits with 0 on success, 1 on invalid arguments, and 2 on any
  other error.
  
  @param args        same as main()
  @param inputStream redirected input, or null to use standard input
  @return Status code to be returned to the operating system
  @throws IOException on error