gkz / LiveScript

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
http://livescript.net
MIT License
2.32k stars 155 forks source link

Fix flag combinations: -ce and -aj, fixes #993 #995

Closed vendethiel closed 6 years ago

vendethiel commented 6 years ago

So these work again:

$ ./bin/lsc -m none -bce 'a!'
// Generated by LiveScript 1.5.0
a();
$ ./bin/lsc -aje '1'
{
  ...
}
rhendric commented 6 years ago

The -bce fix looks good to me.

Prior to this, both -aje and -je read from stdin. Now -aje doesn't but -je still does. Why the difference?

rhendric commented 6 years ago

Ah, never mind! I get it now (the thing being read in is only relevant when actually running the code).