Permalink
Browse files

minor tweaks to rspec command help output

  • Loading branch information...
1 parent c1a9383 commit 714176cd9904d3e3caae322e05f8b7afbb870154 @dchelimsky dchelimsky committed Jan 22, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/rspec/core/option_parser.rb
@@ -23,7 +23,7 @@ def parse!(args)
def parser(options)
OptionParser.new do |parser|
- parser.banner = "Usage: rspec [options] [files or directories]"
+ parser.banner = "Usage: rspec [options] [files or directories]\n\n"
parser.on('-b', '--backtrace', 'Enable full backtrace') do |o|
options[:full_backtrace] = true
@@ -106,11 +106,7 @@ def parser(options)
options[:drb_port] = o.to_i
end
- parser.on('--tty') do |o|
- options[:tty] = true
- end
-
- parser.on('--fail-fast', 'Use the fail_fast option to tell RSpec to abort the run on first failure.') do |o|
+ parser.on('--fail-fast', 'Abort the run on first failure.') do |o|
options[:fail_fast] = true
end
@@ -126,6 +122,10 @@ def parser(options)
options[filter_type] ||= {}
options[filter_type][name] = value
end
+
+ parser.on('--tty', 'Used internally by rspec when sending commands to other processes') do |o|
+ options[:tty] = true
+ end
end
end
end

0 comments on commit 714176c

Please sign in to comment.