From: Zbigniew Jędrzejewski-Szmek Date: Sat, 31 Aug 2024 07:25:01 +0000 (+0300) Subject: config: match against verb value not verb name X-Git-Tag: v25~325^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=543a9f6f73ff3403c4e938abec5ff1cdd2eaa43f;p=thirdparty%2Fmkosi.git config: match against verb value not verb name For the existing verbs, those are the same. But for a verb with a dash, which I want to add next, the name has the underscore, which will not match the verb on the commandline. --- diff --git a/mkosi/config.py b/mkosi/config.py index 38769fb48..461eaedf7 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -3766,7 +3766,7 @@ def parse_config(argv: Sequence[str] = (), *, resources: Path = Path("/")) -> tu # summary would be treated as -i=summary. for verb in Verb: try: - v_i = argv.index(verb.name) + v_i = argv.index(verb.value) except ValueError: continue