private void run(String[] args) throws Exception {

        if (args == null || args.length < 1 || args.length >2) {
            System.out.println();
            System.out.println("  ##################################################################################");
            System.out.println("  # IMDB Tool, Usage");
            System.out.println("  ##################################################################################");
            System.out.println("  imdb.sh scan               (crawls from current directory searching for nfo-files)");
            System.out.println("    or");
            System.out.println("  imdb.sh <movie-id>         (movie-id format: 0123789)");
            System.out.println("    or");
            System.out.println("  imdb.sh <time1> <time2>    (time format: <hours>[.:]<minutes>[.:]<seconds>)");
            System.out.println();
        }
        else
        {
            if (args.length==1) {
                if ("scan".equals(args[0])) {
                    scan(new File("."));
                } else {
                    File file = new File(".");
                    ImageProducer ip = new ImageProducer();
                    ip.run(args[0], file);
                }
            } else {
                System.out.print("Seconds: ");
                for (int argument=0; argument<2; argument++) {
                    String[] times = args[argument].replaceAll(":", "\\.").split("\\.");
                    ArrayUtils.reverse(times);

                    Integer seconds = 0;
                    for(int index=0; index<times.length; index++) {
                        seconds += ( index>0 ? (int)(Math.pow(60D,(double)index)) : 1) * Integer.parseInt(times[index]);
                    }
                    System.out.print(seconds + " ");
                }
                System.out.println();
            }
        }
    }