Skip to content

Commit

Permalink
Add a Helpful Comment™
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Oct 11, 2022
1 parent 37285d9 commit 5abcd7b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

2 comments on commit 5abcd7b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.