forked from yargs/yargs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make stdout flush on newer versions of Node.js (yargs#501)
* test: add failing test for yargs#497 * fix: created shim that sets stdout/stderr to blocking when we know we're about to exit * fix: OSX tests need a bit more running time * fix: for the sake of Browserify, also check for _handle * chore: pulled setBlocking shim into its own module
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env node | ||
var yargs = require('../../index') | ||
var y = yargs.command('download <url> <files..>', 'make a get HTTP request') | ||
.help() | ||
|
||
for (var i = 0; i < 1000; i++) { | ||
yargs.option('o' + i, { | ||
describe: 'option ' + i | ||
}) | ||
} | ||
|
||
y.argv | ||
|
||
console.log('never get here') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters