You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rdoc
+25-5
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ you can do so with a simple environment variable, instead of editing the
163
163
== Options
164
164
165
165
Usage: annotate [options] [model_file]*
166
-
--additional_file_patterns Additional file paths or globs to annotate
166
+
--additional_file_patterns Additional file paths or globs to annotate, separated by commas (e.g. `/foo/bar/%model_name%/*.rb,/baz/%model_name%.rb`)
167
167
-d, --delete Remove annotations from all model files or the routes.rb file
168
168
-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)
169
169
--position
@@ -206,15 +206,35 @@ you can do so with a simple environment variable, instead of editing the
206
206
--frozen Do not allow to change annotations. Exits non-zero if there are going to be changes to files.
207
207
--timestamp Include timestamp in (routes) annotation
208
208
--trace If unable to annotate a file, print the full stack trace, not just the exception message.
209
-
-I, --ignore-columns REGEX don't annotate columns that match a given REGEX (i.e., `annotate -I '^(id|updated_at|created_at)'`
210
-
--ignore-routes REGEX don't annotate routes that match a given REGEX (i.e., `annotate -I '(mobile|resque|pghero)'`
209
+
-I, --ignore-columns REGEX don't annotate columns that match a given REGEX (e.g. `annotate -I '^(id|updated_at|created_at)'`)
210
+
--ignore-routes REGEX don't annotate routes that match a given REGEX (e.g. `annotate -I '(mobile|resque|pghero)'`)_
211
211
--hide-limit-column-types VALUES
212
-
don't show limit for given column types, separated by commas (i.e., `integer,boolean,text`)
212
+
don't show limit for given column types, separated by commas (e.g. `integer,boolean,text`)
213
213
--hide-default-column-types VALUES
214
-
don't show default for given column types, separated by commas (i.e., `json,jsonb,hstore`)
214
+
don't show default for given column types, separated by commas (e.g. `json,jsonb,hstore`)
215
215
--ignore-unknown-models don't display warnings for bad model files
216
216
--with-comment include database comments in model annotations
217
217
218
+
=== Option: +additional_file_patterns+
219
+
220
+
CLI: +--additional_file_patterns+<br>
221
+
Ruby: +:additional_file_patterns+
222
+
223
+
Provide additional paths for the gem to annotate. These paths can include globs.
224
+
It is recommended to use absolute paths. Here are some examples:
option_parser.on('--additional_file_patterns path1,path2,path3',Array,"Additional file paths or globs to annotate")do |additional_file_patterns|
52
+
option_parser.on('--additional_file_patterns path1,path2,path3',Array,"Additional file paths or globs to annotate, separated by commas (e.g. `/foo/bar/%model_name%/*.rb,/baz/%model_name%.rb`)")do |additional_file_patterns|
0 commit comments