From bc117adba600fa4737b588182ce1c95a4c5acb8b Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 12 Jan 2015 19:51:19 -0400 Subject: [PATCH] now you have options you don't have access to options unless you accept it as an argument --- coffeescript/05_compiling.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coffeescript/05_compiling.html b/coffeescript/05_compiling.html index d1206b7..5c49d95 100644 --- a/coffeescript/05_compiling.html +++ b/coffeescript/05_compiling.html @@ -102,7 +102,7 @@

Cake

option '-o', '--output [DIR]', 'output dir'
 
-task 'build', 'Build lib/ from src/', ->
+task 'build', 'Build lib/ from src/', (options) ->
   # Now we have access to a `options` object
   coffee = spawn 'coffee', ['-c', '-o', options.output or 'lib', 'src']
   coffee.stderr.on 'data', (data) ->
@@ -130,4 +130,4 @@ 

Server side support

- \ No newline at end of file +