At first coffee -r
/ coffee --run
was used to run scripts.
It got deprecated from 0.5.3 (issue / commit).
Then coffee -r
/ coffee --require
was used to require modules.
It was removed since 1.5.0 (commit / issue).
@jashkenas said about that:
--require was originally for when we were encouraging folks to "extend" (read, monkey-patch) the compiler's inner classes to their own ends. It doesn't really work very well, so we removed it. Instead, you can just require() within your files as usual, if you're running them directly with coffee. If you're not running them directly with coffee, then it shouldn't matter.
As for now, Coffescript version is 1.6.3, This book was written when it was only 1.2.0.
I can recommend these online books: