Skip to content
Browse files

Handle --tty option, but remove it from published options as it's onl…

…y for internal use.
  • Loading branch information...
1 parent 51e7e31 commit dedea7c1191a0510a3aea896ad11aba048b8d003 @dchelimsky dchelimsky committed Dec 18, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/rspec/core/option_parser.rb
View
6 lib/rspec/core/option_parser.rb
@@ -17,7 +17,7 @@ def parse!(args)
RSpec.deprecate("the --formatter option", "-f or --format")
args[args.index("--formatter")] = "--format"
end
- options = {}
+ options = args.delete('--tty') ? {:tty => true} : {}
parser(options).parse!(args)
options
end
@@ -74,10 +74,6 @@ def parser(options)
options[:drb_port] = o.to_i
end
- parser.on("--tty", "Used internally by rspec when sending commands to other processes") do |o|
- options[:tty] = true
- end
-
parser.on('--init', 'Initialize your project with RSpec.') do |cmd|
ProjectInitializer.new(cmd).run
exit

0 comments on commit dedea7c

Please sign in to comment.
Something went wrong with that request. Please try again.