docs: function bin(argv) {
    // setup config
    var config = require('../config/config.js')
  
  
  
    program
    .arguments('<uri> <amount> <reviewer>')
    .option('-d, --database <database>', 'Database')
    .parse(argv)
  
  
    var defaultDatabase = 'webcredits'
  
    config.database = program.database || config.database || defaultDatabase
  
    var rating = {}
    rating.uri = program.args[0]
    rating.rating = program.args[1]
    rating.reviewer = program.args[2]
  
    // validate
    if (!rating.uri || rating.uri === '') {
      console.error('You must enter a valid uri')
      return
    }
  
    if (isNaN(rating.rating)) {
      console.error('You must enter a rating')
      return
  
    }
    if (!rating.reviewer || rating.reviewer === '') {
      console.error('You must enter a valid reviewer')
      return
    }
  
  
    // main
    qpm_media.addRating(rating, config).then(function(ret) {
      if (ret.conn) {
        var conn = ret.conn
        conn.close()
      }
      console.log(ret.ret)
    }).catch(function(err){
      if (err.conn) {
        var conn = err.conn
        conn.close()
      }
      console.error(err.err)
    })
  
  
  }