#!/usr/bin/env ruby

require 'rubygems'
require 'reckon'

options = Reckon::App.parse_opts
reckon = Reckon::App.new(options)

if options[:print_table]
  reckon.output_table
  exit
end

if !reckon.csv_parser.money_column_indices
  puts "I was unable to determine either a single or a pair of combined columns to use as the money column."
  exit
end

reckon.walk_backwards
