Skip to content

Commit

Permalink
Fix #265
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-palma-argus authored Aug 3, 2017
1 parent cbda972 commit 62206cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/gli/commands/initconfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ def initialize(config_file_name,commands,flags,switches)
def create_config(global_options,options,arguments)
config = Hash[(@app_switches.keys + @app_flags.keys).map { |option_name|
option_value = global_options[option_name]
if option_value.kind_of?(String) && option_value.respond_to?(:force_encoding)
[option_name,option_value.force_encoding("utf-8")]
else
[option_name,option_value]
end
[option_name,option_value]
}]
config[COMMANDS_KEY] = {}
@app_commands.each do |name,command|
Expand Down

0 comments on commit 62206cf

Please sign in to comment.