From 5abcd7b05d6c8568aaef7d06e3de9021fe05f881 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Tue, 11 Oct 2022 19:34:19 +0200 Subject: [PATCH] =?UTF-8?q?Add=20a=20Helpful=20Comment=E2=84=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/cml.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/cml.js b/bin/cml.js index dc7902641..80df965e1 100755 --- a/bin/cml.js +++ b/bin/cml.js @@ -77,13 +77,11 @@ const setupLogger = (opts) => { const setupTelemetry = async (opts, yargs) => { const { cml, _: command } = opts; - const { - parsed: { defaulted } - } = yargs; const options = {}; for (const [name, option] of Object.entries(opts.options)) { - if (opts[name] && !defaulted[name]) { + // Skip options with default values (i.e. not explicitly set by users) + if (opts[name] && !yargs.parsed.defaulted[name]) { switch (option.telemetryData) { case 'name': options[name] = null;