code: def cli(context, verbose, quiet, database, sense):
      
      logger = logging.getLogger()
      handler = logging.StreamHandler(sys.stderr)
      handler.setFormatter(LevelFormatter())
      logger.addHandler(handler)
      logger.setLevel(logging.WARNING + (quiet-verbose)*10)
      logging.debug(_('Subcommand: %s'), context.invoked_subcommand)
      context.obj['database'] = Database(database)
      try:
          context.obj['sense'] = SenseWithExport(sense).__enter__()
      except Exception:
          pass
docs: Position Independent Programming For Humans.