# File lib/mspec/utils/options.rb, line 303
303:   def filters
304:     on("-e", "--example", "STR",
305:        "Run examples with descriptions matching STR") do |o|
306:       config[:includes] << o
307:     end
308:     on("-E", "--exclude", "STR",
309:        "Exclude examples with descriptions matching STR") do |o|
310:       config[:excludes] << o
311:     end
312:     on("-p", "--pattern", "PATTERN",
313:        "Run examples with descriptions matching PATTERN") do |o|
314:       config[:patterns] << Regexp.new(o)
315:     end
316:     on("-P", "--excl-pattern", "PATTERN",
317:        "Exclude examples with descriptions matching PATTERN") do |o|
318:       config[:xpatterns] << Regexp.new(o)
319:     end
320:     on("-g", "--tag", "TAG",
321:        "Run examples with descriptions matching ones tagged with TAG") do |o|
322:       config[:tags] << o
323:     end
324:     on("-G", "--excl-tag", "TAG",
325:        "Exclude examples with descriptions matching ones tagged with TAG") do |o|
326:       config[:xtags] << o
327:     end
328:     on("-w", "--profile", "FILE",
329:        "Run examples for methods listed in the profile FILE") do |f|
330:       config[:profiles] << f
331:     end
332:     on("-W", "--excl-profile", "FILE",
333:        "Exclude examples for methods listed in the profile FILE") do |f|
334:       config[:xprofiles] << f
335:     end
336:   end