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 url = process.argv[2] || 'https://www.reddit.com/r/perfectloops/top/?sort=top&t=all&count=25&after=t3_4j0v4f'
  
  
    qpm_media.getRandomUnseenFragment(null, config).then(function(ret){
      console.table(ret.ret[0])
      ret.conn.close()
    }).catch(function (err) {
      console.error(err)
    })
  
  
  }
docs: version as a command