node: add support for --interactive-eval (-ie) flag#1207
node: add support for --interactive-eval (-ie) flag#1207Fishrock123 wants to merge 1 commit intonodejs:v1.xfrom
Conversation
|
hmm, options.domain is not documented there either.. |
|
Maybe change |
|
I'm not a fan of the multi-char short version where The commandline arg parser is a bit too simplistic at the moment and this makes it less POSIX friendly, you should be able to combine arguments and have it make sense, what would Perhaps Basically, I'm a soft -1 on this because I can see the headache of improving our command-line arg parsing at some point in the future when |
|
I agree, hardcoding stuff like |
I agree with that. I was actually quite surprised to find these things were hardcoded. I'd say |
Fixes #1197
This achieves the desired
-iebehaviour of pre-loading the eval expression into, and opening the repl.I'll setup a test in
test-repl-optionsif this looks reasonable, also, not sure if this needs to be documented in--helpor not.Edit: another thing, what
subsystem:should this be?/cc @bnoordhuis
/first time I've ever touched C++ \o/