Skip to content

Commit

Permalink
fix: keep output by default when linear output is on
Browse files Browse the repository at this point in the history
  • Loading branch information
schummar committed Nov 10, 2024
1 parent d54ded3 commit 43e8145
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const argv = cli({
alias: 'k',
type: Boolean,
description: 'Keep output of successful commands visible',
default: false,
},
forever: {
alias: 'f',
Expand Down Expand Up @@ -63,10 +62,11 @@ const argv = cli({
});

(async () => {
const { linearOutput, dynamicOutput, ...restFlags } = argv.flags;
const { dynamicOutput, linearOutput = !dynamicOutput, ...restFlags } = argv.flags;
const flags = {
...restFlags,
linearOutput: linearOutput || !dynamicOutput,
linearOutput,
keepOutput: restFlags.keepOutput ?? linearOutput,
};

if (flags.print) {
Expand Down

0 comments on commit 43e8145

Please sign in to comment.