Skip to content

Commit 58846af

Browse files
committedApr 5, 2017
fix bunyan CLI guard against -p and file args usage at the same time (was broken a while back)
1 parent 994f90e commit 58846af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Known issues:
77

88
## not yet released
99

10-
(nothing yet)
10+
- Ensure that `bunyan` errors out if attempting to use `-p PID` and
11+
file args at the same time.
1112

1213

1314
## 1.8.9

‎bin/bunyan

+2-2
Original file line numberDiff line numberDiff line change
@@ -1525,9 +1525,9 @@ function main(argv) {
15251525
console.log('bunyan ' + getVersion());
15261526
return;
15271527
}
1528-
if (opts.pid && opts.args.length > 0) {
1528+
if (opts.pids && opts.args.length > 0) {
15291529
warn('bunyan: error: can\'t use both "-p PID" (%s) and file (%s) args',
1530-
opts.pid, opts.args.join(' '));
1530+
opts.pids, opts.args.join(' '));
15311531
return drainStdoutAndExit(1);
15321532
}
15331533
if (opts.color === null) {

0 commit comments

Comments
 (0)
Please sign in to comment.