Skip to content

passing extra arguments clarification #20

@FKPSC

Description

@FKPSC

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions