We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 994f90e commit 58846afCopy full SHA for 58846af
CHANGES.md
@@ -7,7 +7,8 @@ Known issues:
7
8
## not yet released
9
10
-(nothing yet)
+- Ensure that `bunyan` errors out if attempting to use `-p PID` and
11
+ file args at the same time.
12
13
14
## 1.8.9
bin/bunyan
@@ -1525,9 +1525,9 @@ function main(argv) {
1525
console.log('bunyan ' + getVersion());
1526
return;
1527
}
1528
- if (opts.pid && opts.args.length > 0) {
+ if (opts.pids && opts.args.length > 0) {
1529
warn('bunyan: error: can\'t use both "-p PID" (%s) and file (%s) args',
1530
- opts.pid, opts.args.join(' '));
+ opts.pids, opts.args.join(' '));
1531
return drainStdoutAndExit(1);
1532
1533
if (opts.color === null) {
0 commit comments