       commands.install()
     if not exists join(staticDirName, "components", componentName())
       commands.install()
-      installTo join(staticDirName, "components"), true
+      installTo join(staticDirName, "components"), argv.link
     tests = discoverTests staticDirName
     extraHtml = getTestTemplate() + "\n" + stringBundlesAsRequirejsModule()
     testServer


provide = (pth) ->
  if not exists pth
    _.reduce [""].concat(pth.split("/")), (soFar, dir) ->
      fs.mkdirSync join(soFar, dir) if not exists(join(soFar, dir))
      soFar += (if soFar then "/" else "") + dir

discoverTests = (dir) ->
  dir ||= if isComponent() then join(testDirectory(), "static") else "static"

    if link
      orig = path.resolve process.cwd()
      process.chdir tgtDir
      console.log "IN THERE"
      fs.symlinkSync join(orig, src), name, "dir"
      process.chdir orig
    else
