Exemple #1
0
  /**
   * Run with "java com.spruenker.gtimelog.reporter.Reporter -i "~/.gtimelog/timelog.txt"
   *
   * @param args First (and only) argument is the location of you timelog.txt file.
   */
  public static void main(String[] args) {

    // Parse command line arguments
    parseArgs(args);

    // Read gtimelog-file
    Report report = importFromFile();

    // Generate and print report
    printer.print(formatter.format(report.getPeriod(period)));
  }