mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
beginnings of a build script
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
option_parser = null;
|
||||
// The CommandLine handles all of the functionality of the `coffee` utility.
|
||||
exports.run = function run() {
|
||||
var flags, separator;
|
||||
parse_options();
|
||||
if (options.interactive) {
|
||||
return require('./repl');
|
||||
@@ -25,6 +26,13 @@
|
||||
if (!(sources.length)) {
|
||||
usage();
|
||||
}
|
||||
separator = sources.indexOf('--');
|
||||
flags = [];
|
||||
if (separator >= 0) {
|
||||
flags = sources.slice((separator + 1), sources.length);
|
||||
sources = sources.slice(0, separator);
|
||||
}
|
||||
process.ARGV = flags;
|
||||
compile_scripts();
|
||||
return this;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user