Skip to content

Commit 43e8145

Browse files
committed
fix: keep output by default when linear output is on
1 parent d54ded3 commit 43e8145

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const argv = cli({
2424
alias: 'k',
2525
type: Boolean,
2626
description: 'Keep output of successful commands visible',
27-
default: false,
2827
},
2928
forever: {
3029
alias: 'f',
@@ -63,10 +62,11 @@ const argv = cli({
6362
});
6463

6564
(async () => {
66-
const { linearOutput, dynamicOutput, ...restFlags } = argv.flags;
65+
const { dynamicOutput, linearOutput = !dynamicOutput, ...restFlags } = argv.flags;
6766
const flags = {
6867
...restFlags,
69-
linearOutput: linearOutput || !dynamicOutput,
68+
linearOutput,
69+
keepOutput: restFlags.keepOutput ?? linearOutput,
7070
};
7171

7272
if (flags.print) {

0 commit comments

Comments
 (0)