| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Can you elaborate here on what specifying the input prompt means? Perhaps with an example?
Sorry, something went wrong.
There was a problem hiding this comment.
I've tried to mirror others argument variant notes, for example in fs.md:
https://github.com/nodejs/node/blame/master/doc/api/fs.md#L473
https://github.com/nodejs/node/blame/master/doc/api/fs.md#L629
https://github.com/nodejs/node/blame/master/doc/api/fs.md#L676
https://github.com/nodejs/node/blame/master/doc/api/fs.md#L1364
https://github.com/nodejs/node/blame/master/doc/api/fs.md#L1916
Would a more verbose note be a duplicate of this explanation above?
Maybe, you could suggest the explanation? As for example, I could add some.
Sorry, something went wrong.
There was a problem hiding this comment.
@benjamingr I've added an example. Is it OK? If the elaboration is still needed, could you suggest one? I am not very good at English.
Sorry, something went wrong.
`options` in the `repl.start([options])` can be a string.
|
Yes, LGTM |
Sorry, something went wrong.
|
/cc @nodejs/documentation |
Sorry, something went wrong.
`options` in the `repl.start([options])` can be a string. Ref: nodejs#10160 PR-URL: nodejs#10221 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
`options` in the `repl.start([options])` can be a string. Ref: nodejs#10160 PR-URL: nodejs#10221 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
doc, repl
Description of change
Document that options in the repl.start([options]) can be a string.
This commit is separated from #10160 on demand for more careful evaluation.
Please, consider these facts:
String argument is already used in the doc examples here and here.
It is also used in the repl.js comment example.
The chain from string argument to prompt and other options setting is this: exports.start -> REPLServer -> Interface in the readline.js