bin/annotate in annotate-2.5.0.pre2 vs bin/annotate in annotate-2.5.0.pre3
- old
+ new
@@ -11,11 +11,11 @@
end
task = :annotate_models
OptionParser.new do |opts|
- opts.banner = "Usage: annotate_models [options] [model_file]*"
+ opts.banner = "Usage: annotate [options] [model_file]*"
opts.on('-d', '--delete',
"Remove annotations from all model files") do
task = :remove_annotation
end
@@ -84,9 +84,14 @@
end
opts.on('--force', 'Force new annotations even if there are no changes.') do |force|
ENV['force'] = 'yes'
end
+
+ opts.on('--trace', 'If unable to annotate a file, print the full stack trace, not just the exception message.') do |value|
+ ENV['trace'] = 'yes'
+ end
+
end.parse!
ENV['is_cli'] = '1'
if Annotate.load_tasks