mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Cache parsing of command line specifications
Change option specification from dict to tuple for better performance and immutability and better type checking.
This commit is contained in:
@@ -247,7 +247,7 @@ def clone_safe_launch_opts() -> Sequence[GoOption]:
|
||||
ans = []
|
||||
allowed = clone_safe_opts()
|
||||
for o in go_options_for_seq(parse_option_spec(options_spec())[0]):
|
||||
if o.obj_dict['name'] in allowed:
|
||||
if o.obj_defn.name in allowed:
|
||||
ans.append(o)
|
||||
return tuple(ans)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user