Skip to content
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

"-- --output=elm.js" not working as expected in PowerShell #251

Open
oliverroer opened this issue Mar 14, 2021 · 1 comment
Open

"-- --output=elm.js" not working as expected in PowerShell #251

oliverroer opened this issue Mar 14, 2021 · 1 comment

Comments

@oliverroer
Copy link

I'm currently going through this chapter on elmprogramming.com.

Half-way through, it instructs me to run the following command:

elm-live post-app/Main.elm --pushstate -- --output=elm.js

When doing this in PowerShell (tried both with version 5.1.19041.610 and 7.0.0), I get the following output:

----------------------
|| 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 workaround seems to be to add double-quotes around the -- separator like so:

elm-live post-app/Main.elm --pushstate "--" --output=elm.js

I've tried the regular Command Prompt as well, and that just works as expected.

Versions:

  • elm-live: 4.0.2
  • elm: 0.19.1
  • OS: Windows 10 Pro, (Version: 2004, OS build: 19041.867)
@eapyl
Copy link

eapyl commented Mar 25, 2021

saved my day, thank you for the workaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants