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 2da5a1c commit 9a82ed9Copy full SHA for 9a82ed9
bin/json-graphql-server.js
@@ -13,11 +13,11 @@ var app = express();
13
14
process.argv.forEach((arg, index) => {
15
// allow a custom port via CLI
16
- if ((arg === '-p' || arg === '--port') && process.argv.length > index + 1) {
+ if ((arg === '--p' || arg === '--port') && process.argv.length > index + 1) {
17
PORT = process.argv[index + 1];
18
}
19
20
- if ((arg === '--h'|| arg === '--host') && process.argv.length > index + 1) {
+ if ((arg === '--h' || arg === '--host') && process.argv.length > index + 1) {
21
HOST = process.argv[index + 1];
22
23
});
0 commit comments