-
Notifications
You must be signed in to change notification settings - Fork 261
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
Arguments Incorrectly Parsed #228
Comments
Just to add - I am running this from Powershell v7 on Windows 10. If I run it from the command prompt cmd.exe it works fine. |
Correction - it works under cmd.exe UNLESS we pass arguments to supervisor Working$supervisor -- .\tests\script.js arg1
Running node-supervisor with
program '.\tests\script.js arg1'
--watch '.'
--extensions 'node,js'
--exec 'node'
Starting child process with 'node .\tests\script.js arg1'
Watching directory 'C:\projects\order' for changes.
Press rs for restarting the process. Not Working$supervisor -w tests -n -- .\tests\script.js arg1
Running node-supervisor with
program 'arg1'
--watch 'tests'
--extensions 'node,js'
--exec 'node'
Starting child process with 'node arg1'
Watching directory 'C:\projects\order\tests' for changes.
Press rs for restarting the process.
node:internal/modules/cjs/loader:998
throw err;
^
Error: Cannot find module 'C:\projects\order\arg1' |
Weirdly, adding C:\projects\order>supervisor -w tests -n -V -- .\tests\script.js arg1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I run
supervisor script.js arg1
I expect it to runnode script.js arg1
however it seems to be runningnode arg1
.Version: latest: 0.12.0
Possibly related to #191
The text was updated successfully, but these errors were encountered: