We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904f89d commit 8707f75Copy full SHA for 8707f75
1 file changed
lib/kafo/kafo_configure.rb
@@ -77,12 +77,12 @@ def help(*args)
77
78
def use_colors?
79
if config
80
- colors = config.app[:colors]
81
- else
82
- colors = ARGV.include?('--no-colors') ? false : nil
83
- colors = ARGV.include?('--colors') ? true : nil if colors.nil?
+ config.app[:colors]
+ elsif ARGV.include?('--no-colors')
+ false
+ elsif ARGV.include?('--colors')
84
+ true
85
end
- colors
86
87
88
def preset_color_scheme
0 commit comments