bin/annotate in annotate-2.5.0.pre1 vs bin/annotate in annotate-2.5.0.pre2
- old
+ new
@@ -59,22 +59,22 @@
opts.on('--ignore-model-subdirects',
"Ignore subdirectories of the models directory") do |dir|
ENV['ignore_model_sub_dir'] = "yes"
end
- opts.on('-n', '--no-sort',
- "Sort columns in creation order rather than alphabetically") do |dir|
- ENV['no_sort'] = "yes"
+ opts.on('--sort',
+ "Sort columns alphabetically, rather than in creation order") do |dir|
+ ENV['sort'] = "yes"
end
opts.on('-R', '--require path',
"Additional files to require before loading models") do |path|
if ENV['require']
ENV['require'] = ENV['require'] + ",#{path}"
else
ENV['require'] = path
end
- end
+ end\
opts.on('-e', '--exclude [tests,fixtures]', Array, "Do not annotate fixtures, test files, or both") do |exclusions|
exclusions.each { |exclusion| ENV["exclude_#{exclusion}"] = "yes" }
end