Sha256: ef5ceb2b21fdb626ceb2d0013b4146136536574f9b6642eefa8b6a4781986559

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'reckon'

begin
  options = Reckon::Options.parse
rescue RuntimeError => e
  puts("ERROR: #{e}")
  exit(1)
end
reckon = Reckon::App.new(options)

if options[:print_table]
  reckon.output_table
  if options[:table_output_file]
    File.open(options[:table_output_file], 'w') { |fh| reckon.output_table fh }
  end
  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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reckon-0.9.0 bin/reckon
reckon-0.8.1 bin/reckon
reckon-0.8.0 bin/reckon
reckon-0.7.2 bin/reckon