     .option '--client_secret <value>'
     .option '-a --authinfo <filename>', 'save auth-info'
     .action (options) ->
-      par = _.extend {}, defaultOptions, _.pick options, ['client_id', 'client_secret'].concat _.keys defaultOptions
+      par = _.extend {}, defaultOptions, pickParent(options), _.pick options, ['client_id', 'client_secret'].concat _.keys defaultOptions
+      logger.setLevel par.logger
       cmdAuth par
 
   program.command 'show <res>'
     .description 'show list/drive'
     .option '-p --path [name]', 'item id/name'
     .action (name, options) ->
-      par = _.extend {}, defaultOptions, _.pick options, ['path'].concat _.keys defaultOptions
+      par = _.extend {}, defaultOptions, pickParent(options), _.pick options, ['path'].concat _.keys defaultOptions
+      logger.setLevel par.logger
       cmdShowList par if name is 'list'
       cmdShowDrive par if name is 'drive'
 


helper  = require './helper'
logger  = log4js.getLogger()
#logger.setLevel 'INFO'

getToken = (par, fin) ->
  par =

  program.version '1.0.0'
    .option '-u --user [id]', 'prefix eg. /v1.0/users/{id}, default ' + defaultOptions.user
    .option '-d --drive [id]', 'select dirve eg. dirves/{id}, default ' + defaultOptions.dirve
    .option '--logger [level]', 'set logger level TRACE,DEBUG,{INFO},WARN,ERROR'

  pickParent = (options) -> _.pick options.parent, ['logger']

  program.command 'auth'
    .description 'show auth uri && wait for {code} from stdin'
