Skip to content

Commit

Permalink
nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed Aug 16, 2022
1 parent 4637ea8 commit e0fe149
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 @@ -65,8 +65,9 @@ const setupTelemetry = async (opts) => {

const runPlugin = async ({ $0: executable, command }) => {
if (command === undefined) throw new Error('no command');
const { argv } = process.argv;
const path = which.sync(`${basename(executable)}-${command}`);
const parameters = process.argv.slice(process.argv.indexOf(command) + 1); // HACK
const parameters = argv.slice(argv.indexOf(command) + 1); // HACK
await pseudoexec(path, parameters);
};

Expand Down

1 comment on commit e0fe149

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