Skip to content

Commit

Permalink
Unpack yargs in function body
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Oct 11, 2022
1 parent 719dc9a commit 771f0c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ const setupLogger = (opts) => {
});
};

const setupTelemetry = async (opts, { parsed: { defaulted } }) => {
const setupTelemetry = async (opts, yargs) => {
const { cml, _: command } = opts;
const { parsed: { defaulted } } = yargs;

const options = {};
for (const [name, option] of Object.entries(opts.options)) {
Expand Down

2 comments on commit 771f0c1

@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.