petruisfan / node-supervisor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Regarding the args order when declaring the start command

running-coder opened this issue · comments

Hey, I'm new to supervisor and had to investigate a crashing child issue and my bad if it already been discussed.

My original command inside package.json was "start": "supervisor -- server.js --i data/"
I had to change it due to line 69 which breaks the loop and then ignore the following ignore parameter
After changing to "start": "supervisor -i data/ -- server.js" everything works fine and the data folder is ignored.

My question is, why do you have to break the loop at this place, and not finish reading the rest of the command?

Regards