public static void main(String [] args) {
        CumulatedRevenue revenues = new CumulatedRevenue();
        if (args.length < 1) {
            quit("Usage: Main --scheduler [day]");
        }
        String policy = args[0].substring(2);  //get rid of the leading "--"

        if (args.length == 1 || args[1].equals("all")) {
            //we process every day
            File input = new File(WORKLOAD);
            if (!input.isDirectory()) {
                quit(WORKLOAD + " is not a folder");
            }
            for (File f : input.listFiles()) {
                try {
                    System.out.println("Day " + f.getName());
                    Revenue r = simulateDay(f.getName(), policy);
                    System.out.println(r);
                    revenues.add(r);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }

        } else {
            //a single day
            try {
                Revenue r = simulateDay(args[1], policy);
                System.out.println(r);
                revenues.add(r);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        System.err.println("hop");
        System.out.println(revenues);
    }