code: function (isJson, transformer) {
    printHelpOnExit = false;
    return function (value) {
      if (isJson) {
        console.log(JSON.stringify(value, null, 2));
      } else if (typeof transformer === 'function') {
        console.log(transformer(value));
      } else {
        console.log(value);
      }
      if (theUfo) theUfo.disconnect();
    };
  }
docs: Helper function to reduce boilerplate when running getter commands.