Skip to content

Commit

Permalink
feat: add -a flag for testing with acurses
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Apr 22, 2024
1 parent 5d3f0e0 commit 39d8810
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tools/keytester.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
#!/usr/bin/env python3
# pylint: disable=missing-docstring

import curses
# run with `python3 -m tools.keytester`

from argparse import ArgumentParser, Namespace


def parse_args() -> Namespace:
parser = ArgumentParser()
parser.add_argument("-a", "--acurses", action="store_true")
return parser.parse_args()


if parse_args().acurses:
import src.acurses as curses
else:
import curses


def main(stdscr: curses.window) -> None:
Expand Down

0 comments on commit 39d8810

Please sign in to comment.