Permalink
Browse files

Clarify behavior of --example command line option

- Closes #378.
- Also see #299.
  • Loading branch information...
1 parent de6531b commit 54f90b3cc04378a3a32d7c9b250074bc8aa14886 @dchelimsky dchelimsky committed May 21, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rspec/core/option_parser.rb
@@ -40,8 +40,7 @@ def parser(options)
options[:debug] = true
end
- parser.on('-e', '--example PATTERN', "Run examples whose full descriptions match this pattern",
- "(PATTERN is compiled into a Ruby regular expression)") do |o|
+ parser.on('-e', '--example STRING', "Run examples whose full nested names include STRING") do |o|
options[:full_description] = Regexp.compile(Regexp.escape(o))
end

0 comments on commit 54f90b3

Please sign in to comment.