Add argument error checking to cal.rb