External command interpolation without quoting spaces

program = "my_program"
options = ["-t 10", "-r 5"]
command = `$(program) $(options)`
@show command
# I get    `my_program '-t 10' '-r 5'`
# I want   `my_program -t 10 -r 5`

In the above, I want to pass several options to my external program. How can I remove those single quotes around each option?

Can you do the following?

options = ["-t", "10", "-r", "5"]
3 Likes

Thanks a lot! It works!

I was doing push!(command.exec, option) one by one. LOL.