Skip to content

Commit 154544d

Browse files
committed
main() demo: use a --color argument
1 parent 2119a6b commit 154544d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli_ui/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,10 @@ def main_demo() -> None:
655655

656656
def main() -> None:
657657
parser = argparse.ArgumentParser()
658+
parser.add_argument("--color", choices=["always", "never", "auto"])
658659
parser.add_argument("action", choices=["test_colors", "demo"])
659660
args = parser.parse_args()
661+
setup(color=args.color)
660662
if args.action == "demo":
661663
main_demo()
662664
elif args.action == "test_colors":

0 commit comments

Comments
 (0)