Skip to content

Commit 7c6044c

Browse files
committed
Add additional_file_paths to CLI
1 parent 8bb7a92 commit 7c6044c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.rdoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ you can do so with a simple environment variable, instead of editing the
164164
== Options
165165

166166
Usage: annotate [options] [model_file]*
167+
-a, --additional_file_paths Additional file paths or globs to annotate
167168
-d, --delete Remove annotations from all model files or the routes.rb file
168169
-p [before|top|after|bottom], Place the annotations at the top (before) or the bottom (after) of the model/test/fixture/factory/route/serializer file(s)
169170
--position

bin/annotate

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ positions = %w(before top after bottom)
2525
OptionParser.new do |opts|
2626
opts.banner = 'Usage: annotate [options] [model_file]*'
2727

28+
opts.on('-a', '--additional_file_patterns', Array, "Additional file paths or globs to annotate") do |additional_file_patterns|
29+
ENV['additional_file_patterns'] = additional_file_patterns
30+
end
31+
2832
opts.on('-d', '--delete', 'Remove annotations from all model files or the routes.rb file') do
2933
target_action = :remove_annotations
3034
end

0 commit comments

Comments
 (0)