Skip to content

Instantly share code, notes, and snippets.

@markmarkoh
Created July 26, 2011 06:39
Show Gist options
  • Select an option

  • Save markmarkoh/1106131 to your computer and use it in GitHub Desktop.

Select an option

Save markmarkoh/1106131 to your computer and use it in GitHub Desktop.
watch.bin.js
#!/usr/bin/env node
var app = require('../watch');
var static_dir = '.';
if (process.argv.length > 2) {
static_dir = process.argv[2];
}
app.init(static_dir);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment