           metavar: 'DIRECTORY'
           full: 'output'
       callback: (options) ->
-        config = loadConfig 'config.coffee', options.buildPath
-        brunch.build config
+        brunch.build loadConfig 'config.coffee', options.buildPath
 
     watch:
       help: 'Watch brunch directory and rebuild if something changed'

      callback: (options) ->
        brunch.new options.rootPath, ->
          configPath = path.join options.rootPath, 'config.coffee'
          config = loadConfig configPath, options.buildPath
          brunch.build config

    build:
      help: 'Build a brunch project'

          metavar: 'DIRECTORY'
          full: 'output'
      callback: (options) ->
        brunch.watch loadConfig 'config.coffee', options.buildPath

    generate:
      help: 'Generate model, view or route for current project'
