Skip to content

Commit

Permalink
Fix CLI parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
mheap committed Sep 4, 2023
1 parent 1e84b1d commit 1e2c654
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env node
const run = require(".");
const args = process.argv.slice(2).reverse();
const args = process.argv.slice(2);

if (args.length > 2) {
throw new Error("Usage: convert-action-to-node [filename] [compiled.js]");
throw new Error(
"Usage: convert-action-to-node [compiled.js] [/path/to/action.yaml]"
);
}
run.apply(null, args);

0 comments on commit 1e2c654

Please sign in to comment.