Understanding the `--` (Double Dash) Separator in `slnodejs run` Commands
What does -- mean in a shell command?
-- mean in a shell command?# Deletes a file literally named "-f" (without --, rm would interpret -f as a flag)
rm -- -f
# Checks out a file named "main" (without --, git might think it's a branch name)
git checkout -- mainHow is -- different from --token or --labid?
-- different from --token or --labid?Syntax
Meaning
Example
How does slnodejs run use --?
slnodejs run use --?exec ./node_modules/.bin/slnodejs run \
--token "$SL_TOKEN" \
--buildsessionidfile buildSessionId \
--labid __SEALIGHTS_LAB_ID__ \
--workspacepath "." \
--useinitialcolor true \
--useslnode2 \
-- server.jsShould I include node after --?
node after --?What happens if I write -- node server.js?
-- node server.js?Last updated
Was this helpful?

