feat: Enable strict parsing of CLI arguments

This commit is contained in:
Joachim Van Herwegen 2022-07-27 11:43:53 +02:00
parent f609f1a9c5
commit 4e999eba98
2 changed files with 3 additions and 2 deletions

View File

@ -115,7 +115,8 @@
}
],
"options": {
"usage": "node ./bin/server.js [args]"
"usage": "node ./bin/server.js [args]",
"strictMode": true
}
}
]

View File

@ -10,7 +10,7 @@ import type { CliArgv, Shorthand } from '../variables/Types';
* but that does mean that this class should not error if they are present,
* e.g., by being strict throwing an error on these unexpected parameters.
*
* The following core CLI parameters are mandatory:
* In case strict mode is preferred, the following should be added to the list of known parameters:
* - -c / \--config
* - -m / \--mainModulePath
* - -l / \--loggingLevel