require "thor"

module Timecrunch
  class CLI < Thor

    desc "start MINUTES", "Starts a new timer for MINUTES"
    option :s, :banner => "seconds"
    def start(minutes)
      seconds = options[:s].to_i if options[:s]
      minutes = minutes.to_i
      times = {
        :minutes => minutes,
        :seconds => seconds,
      }
      Timer.new(times, Notifiers::ConsoleNotifier.new).start!
    end
  end
end

require "thor"

module Timecrunch
  class CLI < Thor

    desc "start MINUTES", "Starts a new timer for MINUTES"
    option :s, :banner => "seconds"
    def start(minutes=0)
      seconds = options[:s].to_i if options[:s]
      minutes = minutes.to_i
      times = {
        :minutes => minutes,
        :seconds => seconds,
      }
      Timer.new(times, Notifiers::ConsoleNotifier.new).start!
    end
  end
end

Add default 0 minutes if minutes aren't supplied
Add default 0 minutes if minutes aren't supplied

It would be convenient to not have to include minutes if all you want is
just to use the seconds argument.
