Node help says its possible to pass arguments:
$ node -h
Usage: node [options] [ script.js ] [arguments]
I am making a troubelshooter using the REPL interface and a bootstrap file. Passing an custom argument in this case gives an error:
$ node -r ./bootstrap.js --my-custom-argument
<node-folder>/node.exe: bad option: --my-custom-a
rgument
When I execute the bootstrap file directly and print the arguments that works, but then I don't have a REPL interface:
$ node ./bootstrap.js --my-custom-argument
[
'<node-folder>/node.exe',
'<current-directory>/bootstrap.js',
'--my-custom-argument'
]
Is there any way to bootstrap a REPL interface and have custom arguments available?