This ensures that argparse treats all values read from configfiles as
explicit arguments associated with their respective keys, rather than
attempting to parse them as options in their options in their own right.
if cli_arg in action.option_strings:
if isinstance(action, ListAction):
value = value.replace(os.linesep, action.delimiter)
- new_arg_strings.extend([cli_arg, value])
+ new_arg_strings.append(f"{cli_arg}={value}")
except OSError as e:
self.error(str(e))
# return the modified argument list
"Host": {
"ExtraSearchPaths": "search/here:search/there",
"QemuHeadless": True,
- "QemuArgs": "-vga none -device virtio-vga-gl",
+ "QemuArgs": "-device virtio-vga-gl -vga none",
"Netdev": True,
},
}
"Host": {
"ExtraSearchPaths": "search/debi",
"QemuHeadless": True,
- "QemuArgs": "-nic user,model=virtio-net-pci",
+ "QemuArgs": "-device virtio-vga-gl,xres=1920,yres=1080 -display sdl,gl=on",
"Netdev": True,
},
}