-
-
Save zeekay/7606355 to your computer and use it in GitHub Desktop.
Cake wrapper to push task to end of argument (after options).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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