Skip to content

Commit

Permalink
fix: Show help (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
hata6502 committed Apr 16, 2021
1 parent 71fa682 commit ee9e642
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ interface LazyFormatterJSON {
}

const main = () => {
if (process.argv.length < 3) {
console.error("Usage: lazy-format {check | write} [file]...");
process.exit(1);
}

const mode = process.argv[2];
const paths = process.argv.slice(3);

Expand Down

0 comments on commit ee9e642

Please sign in to comment.