Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passing extra arguments clarification #20

Open
FKPSC opened this issue Apr 26, 2024 · 0 comments
Open

passing extra arguments clarification #20

FKPSC opened this issue Apr 26, 2024 · 0 comments

Comments

@FKPSC
Copy link

FKPSC commented Apr 26, 2024

I saw this:

# Pass params to index.js by adding them after a `--` followed by space
sudo ser create index.js -- --foo bar

and tried this:
sudo ser create index.js -- --foo bar --start --enable --auto-restart
I assume that everything after -- was given to node instead of servicer. I put -- --foo bar in the end of the command and everything worked.

If I did the right thing, maybe there should be a note to always put this parameter last. It might be obvious to experiences dev but it might saw some time and hair-pulling to others :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant