Skip to content

Commit

Permalink
Clarify behavior of --example command line option
Browse files Browse the repository at this point in the history
- Closes #378.
- Also see #299.
  • Loading branch information
dchelimsky committed May 21, 2011
1 parent de6531b commit 54f90b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rspec/core/option_parser.rb
Expand Up @@ -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

Expand Down

0 comments on commit 54f90b3

Please sign in to comment.