bin/commands/now.rb in doing-2.1.36 vs bin/commands/now.rb in doing-2.1.37
- old
+ new
@@ -34,11 +34,11 @@
# c.desc "Edit entry with specified app"
# c.arg_name 'editor_app'
# # c.flag [:a, :app]
- c.action do |_global_options, options, args|
+ c.action do |global_options, options, args|
Doing.auto_tag = !options[:noauto]
raise InvalidArgument, '--back and --from cannot be used together' if options[:back] && options[:from]
if options[:back]
@@ -96,11 +96,11 @@
else
entry.tag('done')
end
end
@wwid.write(@wwid.doing_file)
- elsif $stdin.stat.size.positive?
- input = $stdin.read.strip
+ elsif global_options[:stdin]
+ input = global_options[:stdin]
d, title, note = @wwid.format_input(input)
unless d.nil?
Doing.logger.debug('Parser:', 'Date detected in input, overriding command line values')
date = d
end