Allow using --debug-rendering with panel kitten

This commit is contained in:
Kovid Goyal 2024-03-25 13:56:35 +05:30
parent 0dd2c3ea27
commit 3adf05244d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -65,6 +65,11 @@
--name
condition=not is_macos
Set the name part of the :italic:`WM_CLASS` property (defaults to using the value from :option:`{appname} --class`)
--debug-rendering
type=bool-set
For internal debugging use.
'''.format(appname=appname).format
@ -157,6 +162,8 @@ def main(sys_args: List[str]) -> None:
if not items:
raise SystemExit('You must specify the program to run')
sys.argv = ['kitty']
if args.debug_rendering:
sys.argv.append('--debug-rendering')
for config in args.config:
sys.argv.extend(('--config', config))
sys.argv.extend(('--class', args.cls))