Skip to content

Commit d2a1346

Browse files
authored
fix: getting terminal width (#98)
1 parent 8985237 commit d2a1346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ yargs(hideBin(process.argv))
107107
.alias('help', 'h')
108108
.version()
109109
.alias('version', 'v')
110-
.wrap(yargs.terminalWidth()).argv;
110+
.wrap(process.stdout.isTTY ? yargs.terminalWidth() : 80).argv;

0 commit comments

Comments
 (0)