You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openscience --port=5555 is silently ignored when server.port is set in the config #794
includes is an exact string match, so it only recognises the space-separated spelling.
Why it is wrong
yargs parses both spellings into the same args.port, so the argument says the right thing while the flag that decides whether to trust it says no. With server.port set in openscience.json:
openscience serve --port 5555 -> listens on 5555
openscience serve --port=5555 -> listens on 1234 (from the config)
The = form is the more common one in scripts, CI, and documentation snippets, so the flag the user explicitly typed is silently discarded and the server binds somewhere they did not ask for.
There is no warning: the process starts successfully on the configured port, which reads as the flag having been understood.
Reproduction
process.argv=["node","openscience","--port=5555"]constresolved=awaitresolveNetworkOptions({port: 5555,cors: []})resolved.port// 1234, when the config has server.port = 1234
Activity