Skip to content

Instantly share code, notes, and snippets.

@zeekay
Created November 22, 2013 20:33
Show Gist options
  • Save zeekay/7606355 to your computer and use it in GitHub Desktop.
Save zeekay/7606355 to your computer and use it in GitHub Desktop.
Cake wrapper to push task to end of argument (after options).
#!/usr/bin/env node
// Treat first argument to cake as task name, push it to the end so cake agrees
if (process.argv[2] && process.argv[2].charAt(0) !== '-') process.argv.push(process.argv.splice(2, 1)[0])
require('coffee-script/lib/coffee-script/cake').run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment