import java.io.IOException;

/**
 * This class implements the 'cp' unix application.
 * @author fpereira
 *
 */
public final class Cp {

  /**
   * Private ctor to avoid instantiation.
   */
  private Cp() { }

  /**
   * @param args The input line arguments.
   */
  public static void main(final String[] args) {
    if (args.length != 2) {
      System.err.println("Syntaxe: java Cp src_file dst_file");
      System.exit(1);
    } else {
      FileCopier0 fc = new FileCopier0();
      try {
        fc.cp(args[0], args[1]);
      } catch (IOException e) {
        e.printStackTrace();
      }
    }
  }

}
