#!/usr/bin/env ruby require File.expand_path('../../lib/dicechucker.rb', __FILE__) begin dice = Dicechucker::Dice.parse(ARGV[0]) puts "You #{dice.roll_english}" rescue => err abort "#{err} -- aborting." end