Skip to content

Commit

Permalink
Handle --tty option, but remove it from published options as it's onl…
Browse files Browse the repository at this point in the history
…y for internal use.
  • Loading branch information
dchelimsky committed Dec 19, 2011
1 parent 51e7e31 commit dedea7c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/rspec/core/option_parser.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dedea7c

Please sign in to comment.