You can append the new_options
list to another list using the extend()
method or the +=
operator. Here's how you can do it:
# Your new_options list
new_options = [
{
"shortname": "-clean",
"help": "Cleans run directory",
"required": True,
"default": False,