bin/sculd in sculd-0.2.0 vs bin/sculd in sculd-0.2.1

- old
+ new

@@ -19,10 +19,12 @@ OPTIONS[:after] = v.to_i} op.on("-b day", "--before days", "Event before n days."){|v| OPTIONS[:before] = v.to_i} op.on("-c day", "--center days", "Event days between n days."){|v| OPTIONS[:center] = v.to_i} +op.on("-t date", "--till days", "Event till date."){|v| + OPTIONS[:till] = v} op.on("-w weekdays", "--weekdays=wdays", "Event days only on weekdays. E.g., --weekday='Sun,Mon'"){|v| OPTIONS[:weekdays] = v.split ','} op.on("-t num", "--task num" , "Show tasks on today." ){|v| OPTIONS[:task ] = v.to_i} op.parse!(ARGV) @@ -50,9 +52,16 @@ next end dates << date end end + +if OPTIONS[:till] + Date.today.upto(Date.parse(OPTIONS[:till])) do |d| + dates << d + end +end +#pp dates; exit if OPTIONS[:center] OPTIONS[:after] ||= OPTIONS[:center] OPTIONS[:before] ||= OPTIONS[:center] end