 
     depNames = ['dep', 'dev', 'bundled', 'optional']
     res = depNames.reduce (res, cur) ->
-        res = res or cur
+        res = res or cmder[cur]
+        res
     , false
 
     if res then depNames.forEach (name) -> opts[name] = not not cmder[name]
+    else depNames.forEach (name) -> opts[name] = not cmder[name]
 
     opts
 

"use strict"

cmder = require 'commander'
{cache, writeCacheSync, cachePath} = require './data'

cmder
    .usage "[command] [options]"

    .command 'clean'
    .description 'clean cache'
    .action ->
        {writeCacheSync} = require './data'
        writeCacheSync {}
        process.exit 0
cmder
