"Place the annotations at the top (before) or the bottom (after) of the model file")do|p|
"Place the annotations at the top (before) or the bottom (after) of the model/test/fixture/factory file(s)")do|p|
ENV['position']=p
end
...
...
@@ -67,15 +67,15 @@ OptionParser.new do |opts|
end
opts.on('-R','--require path',
"Additional files to require before loading models")do|path|
ifENV['require']
"Additional file to require before loading models, may be used multiple times")do|path|
if!ENV['require'].blank?
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|
opts.on('-e','--exclude [tests,fixtures,factories]',['tests','fixtures','factories'],"Do not annotate fixtures, test files, and/or factories")do|exclusions|