If you have a Python program that uses argparse
nargs to specify multi-value options then you need to make sure that each value is its own parameter.
import subprocess
subprocess.run(
[
'command',
'--multi-option', 'value1', 'value2',
'--anotheroption=value'
])
If you don't do the above, the subprocess command will complain that the option wasn't set.