wking-io / elm-live

⚡ A flexible dev server for Elm. Live reload included.
https://elm-live.com
MIT License
1.05k stars 61 forks source link

JS output not recognized when using `--ouput FILE` instead of `--output=FILE` #229

Open rlefevre opened 4 years ago

rlefevre commented 4 years ago

When running elm-live 4.0.2 with the following command:

elm-live -H src/Main.elm -- --output elm.js

The following error is returned:

----------------------
|| ERROR IN COMMAND ||
----------------------

Usage: <elm-main> [options] [--] [elm make options]

-- Needs JS Output When Hot Reloading ------

You have turned hot reloading on, but for hot reloading to work you need to load your Elm code through an external JS file. You can learn more about how to do this using the --output flag by reading the following section of the elm guide on JavaScript Interop: <https://guide.elm-lang.org/interop/>

The external javascript file output is not detected.

This works if the following syntax is used:

elm-live -H src/Main.elm -- --output=elm.js

with --output=FILE instead of --output FILE.

I would have expected both syntaxes to work.

Versions

frou commented 4 years ago

Indeed - It's a dupe of #189