Skip to content

Instantly share code, notes, and snippets.

@pmuellr
Created March 4, 2014 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmuellr/9350892 to your computer and use it in GitHub Desktop.
Save pmuellr/9350892 to your computer and use it in GitHub Desktop.

utility belt: http://underscorejs.org/

_ = require "underscore"

command-line option parser: https://github.com/npm/nopt

nopt = require "nopt"

our server

server = require "./server"

pull in our package.json file to get the name and version

pkg    = require "../package.json"

PROGRAM = pkg.name
VERSION = pkg.version

refer to this module's exports with the cli object

cli = exports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment