Skip to content

Commit

Permalink
fix: use the correct arg for JSON reference
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Feb 27, 2023
1 parent 32c1b76 commit bf341db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface IConfigFile {

let configs: IConfigFile = {host: "127.0.0.1", port: 5250, commands: []};

const configFile = process.argv[1];
const configFile = process.argv[2];
console.log("Using config file", configFile);
try {
configs = JSON.parse(fs.readFileSync(configFile, "utf8"));
Expand Down

0 comments on commit bf341db

Please sign in to comment.