Skip to content

Commit 2d4f80c

Browse files
committed
TUI default, unless linear output is explicitly specified
1 parent c548724 commit 2d4f80c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

cecli/args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,8 @@ def get_parser(default_config_files, git_root):
803803
group.add_argument(
804804
"--linear-output",
805805
action=argparse.BooleanOptionalAction,
806-
help="Run input and output sequentially instead of us simultaneous streams (default: True)",
807-
default=True,
806+
help="Run input and output sequentially instead of us simultaneous streams (default: None)",
807+
default=None,
808808
)
809809
group.add_argument(
810810
"--debug",

cecli/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def get_io(pretty):
628628
output_queue = None
629629
input_queue = None
630630
pre_init_io = get_io(args.pretty)
631-
if args.tui or args.tui is None and not args.linear_output:
631+
if args.tui or args.linear_output is None:
632632
try:
633633
from cecli.tui import create_tui_io
634634

@@ -643,6 +643,9 @@ def get_io(pretty):
643643
sys.exit(1)
644644
else:
645645
io = pre_init_io
646+
if args.linear_output is None:
647+
args.linear_output = True
648+
646649
if not args.tui:
647650
try:
648651
io.rule()

0 commit comments

Comments
 (0)