You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running: PS C:\Users\Igor\Documents\sources\repos\com.olenitsj> .\node_modules\.bin\elm-live.ps1 src/Main.elm -e node_modules/.bin/elm -- --output=main.js
on Windows 10, power-shell.
Results in:
----------------------
|| ERROR IN COMMAND ||
----------------------
Usage: <elm-main> [options] [--] [elm make options]
-- Output In Wrong Location -----------------
You have used the elm make flag --output in the wrong location. As seen in the usage example about, all elm make flags must be added to your command after the -- separator.
The work around:
Quoting the --
e.g. PS C:\Users\Igor\Documents\sources\repos\com.olenitsj> .\node_modules\.bin\elm-live.ps1 src/Main.elm -e node_modules/.bin/elm '--' --output=main.js
Proposed solution:
Update example code to use '--', unless this is breaking some other behavior.
The text was updated successfully, but these errors were encountered:
olenitsj
changed the title
elm make seperator -- is not seen as a commandpormpt argumnt in powershell unless.
elm make separator -- is not seen as a command prompt argument in powershell
Mar 22, 2020
olenitsj
changed the title
elm make separator -- is not seen as a command prompt argument in powershell
elm make separator -- is not seen as a command prompt argument in powershell unless quoted
Mar 22, 2020
olenitsj
changed the title
elm make separator -- is not seen as a command prompt argument in powershell unless quoted
elm make separator -- is not seen as a command prompt argument in powershell unless it is quoted
Mar 22, 2020
node --version
v12.16.1.
elm --version
0.19.1
elm-live --version
4.0.2
When running:
PS C:\Users\Igor\Documents\sources\repos\com.olenitsj> .\node_modules\.bin\elm-live.ps1 src/Main.elm -e node_modules/.bin/elm -- --output=main.js
on Windows 10, power-shell.
Results in:
The work around:
Quoting the --
e.g.
PS C:\Users\Igor\Documents\sources\repos\com.olenitsj> .\node_modules\.bin\elm-live.ps1 src/Main.elm -e node_modules/.bin/elm '--' --output=main.js
Proposed solution:
Update example code to use '--', unless this is breaking some other behavior.
Or fix this part of the code:
In node_modules/elm-live/bin/elm-live.js:
The
arg === '--'
check is never true as the--
is never received as a parameter inprogram.rawArgs
Some related material:
https://stackoverflow.com/questions/43046885/what-does-do-when-running-an-npm-command
https://stackoverflow.com/questions/15780174/powershell-command-line-parameters-and
https://stackoverflow.com/questions/12197823/powershell-why-do-i-need-to-escape-a-double-dash-parameter-in-args
The text was updated successfully, but these errors were encountered: