[issue #96] Fix bunyan
to default to paging by default in node 0.10.0.
This commit is contained in:
parent
d10f9ec53b
commit
dceffd7b25
2 changed files with 5 additions and 3 deletions
|
@ -8,7 +8,9 @@ Known issues:
|
|||
|
||||
## bunyan 0.21.4 (not yet released)
|
||||
|
||||
(nothing yet)
|
||||
- [issue #96] Fix `bunyan` to default to paging (with `less`) by default in
|
||||
node 0.10.0. The intention has always been to default to paging for node
|
||||
>=0.8.
|
||||
|
||||
|
||||
## bunyan 0.21.3
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
var VERSION = '0.21.4';
|
||||
|
||||
var p = console.log;
|
||||
var util = require('util');
|
||||
var pathlib = require('path');
|
||||
var vm = require('vm');
|
||||
|
@ -165,7 +166,6 @@ function objCopy(obj) {
|
|||
|
||||
function printHelp() {
|
||||
/* BEGIN JSSTYLED */
|
||||
var p = console.log;
|
||||
p('Usage:');
|
||||
p(' bunyan [OPTIONS] [FILE ...]');
|
||||
p(' ... | bunyan [OPTIONS]');
|
||||
|
@ -1399,7 +1399,7 @@ function main(argv) {
|
|||
!opts.pids && // Don't page if following process output.
|
||||
opts.args.length > 0 && // Don't page if no file args to process.
|
||||
process.platform !== 'win32' &&
|
||||
nodeVer >= [0, 8, 0] &&
|
||||
(nodeVer[0] > 0 || nodeVer[1] >= 8) &&
|
||||
(opts.paginate === true ||
|
||||
(opts.paginate !== false &&
|
||||
(!process.env.BUNYAN_NO_PAGER ||
|
||||
|
|
Loading…
Reference in a new issue