code: function cliFinish(cmdutil, client) {
      assert.object(client, 'client');
      assert.optionalObject(client.collector, 'client.collector');
  
      if (client.collector) {
          client.collector.collect(artedi.FMT_PROM,
              function _outputMetrics(err, metrics) {
                  if (err) {
                      cmdutil.fail(err);
                      return;
                  }
                  console.error('[artedi metrics]');
                  console.error(metrics);
              });
      }
  }
docs: /*
  Output artedi metrics if the -A flag was passed.  This function is run after
  handling requests for each of the cmdline tools.  It will be passed the moray
  client object, and if that client has a collector attached (which would be
  added when -A was passed on the cmdline) it will write the artedi metrics to
  stderr.
  
  It does not provide a return value.
  
  Named arguments:
  
  cmdutil         A node-cmdutil object with a .fail() method.
  cmdutil.fail(err) will be called if there are errors
  collecting metrics.
  
  client          Moray client object.