 		console.log "Available: #{available}"
 		process.exit 1
 
-config = require './config.js'
-utils = require './utils.js'
-async = require 'async'
-dashdash = require 'dashdash'
-
-anyDB = null
-needAnyDB = () ->
-	anyDB = require 'any-db' unless anyDB?
-
 
 help = (arg, callback) ->
 	console.log "\nUsage: node init.js <commands>\n\n#{parser.help(includeEnv: true).trimRight()}"
 	process.exit 2
+
 
 info = (arg, callback) ->
 	needAnyDB()

			console.log "init.js with #{newest + 1} revisions on board."
			console.log "Current revision is #{result} (#{status})."
			process.exit 0

createDatabase = (arg, callback) ->
	needAnyDB()


'use strict'

config = require './config.js'
utils = require './utils.js'
async = require 'async'
dashdash = require 'dashdash'

anyDB = null
needAnyDB = () ->
	anyDB = require 'any-db' unless anyDB?


checkError = (error, dontExit) ->
	if error?
		console.error error
		unless dontExit then process.exit 1


checkArgs = (passed, available) ->
	unless passed in available
