     .wrap(null)
     .version((() -> require('../package').version))
 
-
 # Parse command line args
 argv = yargs.parse process.argv
 console.dir argv

db = new mongo.Db argv.db, server, {w:1}
db.open (err) ->
  console.error "Couldn't open database connection, #{err}" if err
  console.log "Connected to mongo!", db
  db.close (err) ->
    console.error "Couldn't close database connection, #{err}" if err
    console.log "Disconnected from mongo!", db

copyObjects = () ->
  console.log "Copying Objects!"

  exit 1

# Make sure this is the root of a git repo
unless 'objects' in ls('.git')
  console.error 'Not a valid git repo!'
  exit 1

