@chocoby you could instead just do 
```ruby

configuration.slice('host', 'port', 'socket').each do |k, v|
  args.concat([ "--#{k}", v.to_s ]) if v
end

```