lib/day/parser.rb in dayrb-2.0.4 vs lib/day/parser.rb in dayrb-2.0.5
- old
+ new
@@ -49,10 +49,10 @@
check_for_second_argument
when :delete
demand_second_argument
when :switch
task = lookup_task(ARGV.first)
- if task && @config.data['context'] == task
+ if task && @config.context == task
opts[:operation] = :leave
nil
elsif task
task
else
\ No newline at end of file