 program.option '-t, --thumbs'
 program.parse process.argv
 
-r = new Rembrant 'library.json'
+rembrant = new Rembrant 'library.json'
 
 if program.thumbs
-  do r.makeThumbs
+  rembrant.makeThumbs()
 
 if program.export
-  do r.export
+  rembrant.export()
 
 if program.import
-  do r.importPhotos
+  rembrant.importPhotos()

# Rembrant - photo gallery software
# (c) 2011 - Honza Pokorny - All rights reserved
# Freely available under the terms of the BSD license
# https://github.com/honza/rembrant


      console.log 'done'

  export: ->
    @generateIndex
    @generateAlbums
    @generatePages


program = require 'commander'
