mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
fix: redirect help (#1825)
Fixes: #1807 Allows for nodemon --help > help.txt
This commit is contained in:
@@ -39,7 +39,9 @@ function nodemon(settings) {
|
||||
}
|
||||
|
||||
if (settings.help) {
|
||||
process.stdout._handle.setBlocking(true); // nodejs/node#6456
|
||||
if (process.stdout.isTTY) {
|
||||
process.stdout._handle.setBlocking(true); // nodejs/node#6456
|
||||
}
|
||||
console.log(help(settings.help));
|
||||
if (!config.required) {
|
||||
process.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user