Document stdout and stderr arguments to callback in usage example
This commit is contained in:
parent
f91a0a9b16
commit
f163c812cd
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ var options = {
|
|||
icns: '/path/to/icns/file', // (optional)
|
||||
onChildProcess: function(childProcess) {} // (optional)
|
||||
};
|
||||
sudo.exec('echo hello', options, function(error) {});
|
||||
sudo.exec('echo hello', options, function(error, stdout, stderr) {});
|
||||
```
|
||||
|
||||
`sudo-prompt` will use `process.title` as `options.name` if `options.name` is not provided. `options.name` must be alphanumeric only (spaces are supported) and at most 70 characters.
|
||||
|
|
Loading…
Reference in a new issue