 
 defineDefaultTasks = () ->
 
-_.extend(global, { task: task, invoke: invoke, map: map })
+_.extend(global, { option: option, task: task, invoke: invoke, map: map })
 
 getMtime = (file, cb) ->
   fs.stat file, (err, stats) ->


# bootstrap
load = (cb) ->
  _switches.push ["-T", "--tasks", "List tasks"]

  # define a few default tasks
  task "build", "Build everything! (run all mappings, in the order defined)", runAllMappings

    catch err
      growl("Piefile\n#{shortErr(err)}")
      printErr(err)

option = (args...) ->
  _switches.push(args)

task = (name, args...) ->
  _tasks[name] = new Task(name, args...)
