Skip to content

Commit

Permalink
Allow using --debug-rendering with panel kitten
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Mar 25, 2024
1 parent 0dd2c3e commit 3adf052
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kittens/panel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 3adf052

Please sign in to comment.