Commit 819d1eb0 authored by Fabio Pelosin's avatar Fabio Pelosin

[Pod::Command] --no-color block arguments fix

parent 7d973f6d
...@@ -89,7 +89,7 @@ module Pod ...@@ -89,7 +89,7 @@ module Pod
Config.instance.silent = argv.option('--silent') Config.instance.silent = argv.option('--silent')
Config.instance.verbose = argv.option('--verbose') Config.instance.verbose = argv.option('--verbose')
String.send(:define_method, :colorize) { return self } if argv.option('--no-color') String.send(:define_method, :colorize) { |string , _| string } if argv.option( '--no-color' )
command_class = case argv.shift_argument command_class = case argv.shift_argument
when 'install' then Install when 'install' then Install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment