code: function runTool(platform, args_, done) {
    var args = optimist.argv;
    var allzones = args['allzones'];
  
    var inputFile = args['_'][0];
    if (!inputFile) {
      console.log('usage: dump.js [--allzones] file.wtf-trace');
      done(1);
      return;
    }
    console.log('Dumping ' + inputFile + '...');
    console.log('');
  
    wtf.db.load(inputFile, function(db) {
      if (db instanceof Error) {
        console.log('ERROR: unable to open ' + inputFile, db, db.stack);
        done(1);
      } else {
        done(dumpDatabase(db, allzones));
      }
    });
  }
docs: Dump tool.
  @param {!wtf.pal.IPlatform} platform Platform abstraction layer.
  @param {!Array.<string>} args Command line arguments.
  @param {function(number)} done Call to end the program with a return code.