summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/test/unit.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index d45badab01..b96dece837 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -129,6 +129,12 @@ module Test
"colorize the output. WHEN defaults to 'always'", "or can be 'never' or 'auto'." do |c|
options[:color] = c || :always
end
+
+ opts.on '--tty[=WHEN]',
+ [:yes, :no],
+ "force to output tty control. WHEN defaults to 'yes'", "or can be 'no'." do |c|
+ @tty = c != :no
+ end
end
def non_options(files, options)