From d520a340e8a0c5ff1f674e7c9d78a128f3a4b114 Mon Sep 17 00:00:00 2001 From: Martino Visintin Date: Thu, 14 Jan 2016 12:44:05 +0100 Subject: [PATCH] update `exec` docs to match implemented behaviour --- README.md | 3 ++- src/exec.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 980f536..ff98095 100644 --- a/README.md +++ b/README.md @@ -475,7 +475,8 @@ Object containing environment variables (both getter and setter). Shortcut to pr ### exec(command [, options] [, callback]) Available options (all `false` by default): -+ `async`: Asynchronous execution. Defaults to true if a callback is provided. ++ `async`: Asynchronous execution. If a callback is provided, it will be set to + `true`, regardless of the passed value. + `silent`: Do not echo program output to console. Examples: diff --git a/src/exec.js b/src/exec.js index 87a6c30..0c5408b 100644 --- a/src/exec.js +++ b/src/exec.js @@ -182,7 +182,8 @@ function execAsync(cmd, opts, callback) { //@ ### exec(command [, options] [, callback]) //@ Available options (all `false` by default): //@ -//@ + `async`: Asynchronous execution. Defaults to true if a callback is provided. +//@ + `async`: Asynchronous execution. If a callback is provided, it will be set to +//@ `true`, regardless of the passed value. //@ + `silent`: Do not echo program output to console. //@ //@ Examples: