jakejs / jake

JavaScript build tool, similar to Make or Rake. Built to work with Node.js.
http://jakejs.com
Apache License 2.0
1.97k stars 190 forks source link

-T ignores -f unless -f is placed first #307

Closed welearnednothing closed 8 years ago

welearnednothing commented 8 years ago

Fixes #276. This is because -T/--tasks/-ls is defined as a command that preempts, causing it to not take in any args. However, it does not need to be preemptive because the --task option short circuts Program.run on line 215, currently (https://github.com/jakejs/jake/blob/6d47c7f8461f17c2c2a53455a098c0449253bb36/lib/program.js#L215), and in doing so applies arguments such as -f.

mde commented 8 years ago

Excellent!