-
Notifications
You must be signed in to change notification settings - Fork 134
Description
What do you think about separating flags passed to purs compile explicitly in some way, for example with --purs-compile-flags=?
Right now --help says you should use -- if you want to specify that something should go to purs compile, but what really confused me is that it is not mandatory to separate them with --.
Running spago build src/X.purs src/Y.purs works fine - which is not immediately obvious when looking at spago build --help (it has no mentions of files as arguments).
This was especially problematic when I tried spago build --watch --path src/**/*.purs, only to see how not all of my files were "being watched". In reality only the first file from the expanded glob is being watched, because --path accepts only one file - the rest are passed onto purs compile, allowing compilation to proceed without errors (or at least that's what I think is going on here).