Skip to content

Commit

Permalink
fix: args → argv
Browse files Browse the repository at this point in the history
  • Loading branch information
urish authored Aug 10, 2021
1 parent 98292cf commit cfcfc49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (process.argv[2] === '-v') {
process.exit(0);
}

const inputFile = process.args[2] == '-' ? '/dev/stdin' : process.args[2];
const inputFile = process.argv[2] == '-' ? '/dev/stdin' : process.argv[2];

const input = JSON.parse(fs.readFileSync(inputFile, 'utf-8'));
const output = input.docType === '5' ? convertSchematic(input) : convertBoard(input);
Expand Down

0 comments on commit cfcfc49

Please sign in to comment.