lib/sifttter-redux.rb in sifttter-redux-1.0.1 vs lib/sifttter-redux.rb in sifttter-redux-1.0.2

- old
+ new

@@ -85,12 +85,17 @@ # Creates a date range from the supplied command line # options. # @param [Hash] options GLI command line options # @return [Range] def self.get_dates_from_options(options) - if options[:c] || options[:n] || options[:w] || options[:y] || options[:f] || options[:t] + if options[:c] || options[:n] || options[:w] || + options[:y] || options[:f] || options[:t] || + options[:d] # Yesterday r = DateRangeMaker.yesterday if options[:y] + + # Specific date + r = DateRangeMaker.range(options[:d], options[:d]) if options[:d] # Current Week r = DateRangeMaker.last_n_weeks(0, options[:i]) if options[:c] # Last N Days