diff --git a/lib/delayed/command.rb b/lib/delayed/command.rb index 281078242..74325faaa 100644 --- a/lib/delayed/command.rb +++ b/lib/delayed/command.rb @@ -78,7 +78,7 @@ def initialize(args) # rubocop:disable MethodLength @options[:exit_on_complete] = true end opt.on('--daemon-options a, b, c', Array, 'options to be passed through to daemons gem') do |daemon_options| - @daemon_options = daemon_options + @daemon_options = daemon_options.map { |o| o.split(' ') }.flatten end end @args = opts.parse!(args) + (@daemon_options || [])