This commit is contained in:
Kovid Goyal 2025-04-27 20:15:52 +05:30
parent 648dfec8a9
commit 3dc85838c8
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -292,6 +292,7 @@ def generate_c_parser_for(funcname: str, spec: str) -> Iterator[str]:
yield '\tflag.defval.type = CLI_VALUE_STRING;'
yield f'\tflag.defval.strval = {"NULL" if defval is None else c_str(defval)};'
yield '\tif (vt_is_end(vt_insert(&spec->flag_map, flag.dest, flag))) OOM;'
yield '\tparse_cli_loop(spec, true, argc, argv);'
yield '}'