purescript-contrib / pulp

A build tool for PureScript projects
GNU Lesser General Public License v3.0
443 stars 86 forks source link

`pulp build -O` sends `compile` `--` passthroughs also to `bundle` #307

Open metaleap opened 7 years ago

metaleap commented 7 years ago

Not even sure if this is sanely fixable (certainly the work-around is to not use build -O and call bundle separately), but wanted to note this down anyway.

[17:37 me ~/.../foo/bar]$ pulp build -- --dump-corefn
* Building project in /home/me/c/ps/foo/bar
* Build successful.

[17:37 me ~/.../foo/bar]$ pulp build -O -- --dump-corefn
* Building project in /home/me/c/ps/foo/bar
* Build successful.
* Bundling JavaScript...
Invalid option `--dump-corefn'
Usage: purs COMMAND
  The PureScript compiler and tools
* ERROR: Subcommand terminated with exit code 1
[17:37 me ~/.../foo/bar]$ 
nwolverson commented 7 years ago

This has been discussed before (and again recently, like here) but I don't see that there's a specific issue open tracking it atm.