code: function bin(argv) {
    // setup config
    var config = require('../config/config.js')
  
    program
    .option('-d, --database <database>', 'Database')
    .parse(argv)
  
    var defaultDatabase = 'media'
  
    config.database = program.database || config.database || defaultDatabase
    var mediaURI     = process.argv[2]
    var length       = process.argv[3]
    var subtitlesURI = process.argv[4]
    var charenc      = process.argv[5]
  
    if (!mediaURI) {
      console.error('Please supply a media URI')
    }
  
    var params           = {}
    params.uri           = mediaURI
    params.length        = length
    params.subtitlesURI  = subtitlesURI
    params.charenc       = charenc
  
    qpm_media.addMeta(params).then(function(ret) {
      if (ret.conn) {
        ret.conn.close()
      }
      if (ret.ret) {
        console.log(ret.ret)
      }
    }).catch(function(err) {
      console.error(err)
    })
  
  }
docs: version as a command