Permalink
Browse files

--cron should silence deprecation warnings as well

  • Loading branch information...
1 parent 28cc066 commit 5d0376a7f537895d04e80e0cef8c88b11ec6a7ca @danlucraft committed Jun 2, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −1 lib/rake/application.rb
  2. +1 −0 test/test_rake_application_options.rb
View
@@ -388,10 +388,11 @@ def standard_rake_options
Rake.verbose(true)
}
],
- ['--cron', '-c', "Like --silent, but full backtraces are printed on errors (useful for cronjobs)",
+ ['--cron', '-c', "Like -s and -X, but full backtraces are printed on errors (useful for cronjobs)",
lambda { |value|
options.cron = true
options.silent = true
+ options.ignore_deprecate = true
}
],
['--verbose', '-v', "Log message to standard output.",
@@ -239,6 +239,7 @@ def test_cron
flags('--cron', '-c') do |opts|
assert opts.cron
assert opts.silent
+ assert opts.ignore_deprecate
end
end
end

0 comments on commit 5d0376a

Please sign in to comment.