[actions] implement 'flag … = skip' (#8960)

This commit is contained in:
Mike Fährmann
2026-02-06 08:37:23 +01:00
parent 22b12a1798
commit 71680feab9
5 changed files with 23 additions and 8 deletions

View File

@@ -231,7 +231,13 @@ def action_flag(opts):
r"(?i)(file|post|child|download)(?:\s*[= ]\s*(.+))?"
).match(opts).groups()
flag = flag.upper()
value = "stop" if value is None else value.lower()
if value is None:
value = "stop"
elif value == "skip":
value = "stop" if flag == "DOWNLOAD" else False
else:
value = value.lower()
def _flag(args):
util.FLAGS.__dict__[flag] = value