'use strict';

var scope = require('./lib/processlist');

// sync api
exports.snapshotSync = function(opts) {
  return scope.snapshotSync(opts.verbose);
};

// async api
exports.snapshot = function(opts, cb) {
  if (typeof opts === 'function') {
    cb = opts;
    opts = {};
  }

  return scope.snapshot(opts.verbose, cb);
};

@@ -131,24 +131,32 @@
 hotSync(opts
+ && opts
 .verbose);%0A%7D

fix use `verbose` flag on snapshotSync