Package cli

Class Main

java.lang.Object
cli.Main

public class Main
extends java.lang.Object
A command line interface for the ray tracer.
  • Constructor Summary

    Constructors
    Constructor Description
    Main()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)
    The main entry point for the program.
    static void runCommand​(java.lang.String... args)
    Ray traces the xml files listed in the given args, applying the specified options.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main​(java.lang.String[] args)
      The main entry point for the program.
      Parameters:
      args - The command line arguments.
    • runCommand

      public static void runCommand​(java.lang.String... args) throws java.io.IOException, org.apache.commons.cli.ParseException
      Ray traces the xml files listed in the given args, applying the specified options.
      Parameters:
      args - The command line arguments to configure the program.
      Throws:
      java.io.IOException - if the file could not be opened.
      org.apache.commons.cli.ParseException - if the args were not in the expected format.