Skip to content

Commit a2c2858

Browse files
authored
Merge pull request #157 from minupalaniappan/minu/update-cli-custom-host-port
Fix CLI parameters short name
2 parents 2da5a1c + a66d024 commit a2c2858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/json-graphql-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ process.argv.forEach((arg, index) => {
1717
PORT = process.argv[index + 1];
1818
}
1919

20-
if ((arg === '--h'|| arg === '--host') && process.argv.length > index + 1) {
20+
if ((arg === '-h' || arg === '--host') && process.argv.length > index + 1) {
2121
HOST = process.argv[index + 1];
2222
}
2323
});

0 commit comments

Comments
 (0)