You need to go
Run > Configuration per file
(or hit Ctrl+F6
) and in the dialog that it appears you need to check
Command line options
and write (for example) there
1 2 3
After closing this dialog and hitting F5
, you'll see the output you are expecting.
Note: Please remember that these command line options are saved between Spyder restarts as part of the file run config, so if you want to change them, you need to hit Ctrl+F6
again.