We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3784a1b commit 196e133Copy full SHA for 196e133
bin/replClient.ts
@@ -4,13 +4,13 @@ const main = () => {
4
const { argv } = process;
5
6
let host = "127.0.0.1";
7
- let port;
+ let port = 2580;
8
9
if (argv.length === 4) {
10
host = argv[2];
11
- port = argv[3];
+ port = Number(argv[3]);
12
} else if (argv.length === 3) {
13
- port = argv[2];
+ port = Number(argv[2]);
14
} else {
15
throw new Error("The command is supposed to be used as: yarn remote [server address] [REPL port]");
16
}
0 commit comments