Commit 5d70dee2 authored by Will Cory's avatar Will Cory

🐛 fix: Allow unknown option in base service v2

When the server is used in tests we cannot pass any flags into the test suite.  This is from comandeer being defensive about unknown options.    This means we can't run the test suite in watch mode, or in update mode, or any other jest flags.
parent 98b6a400
......@@ -156,7 +156,7 @@ export abstract class BaseServiceV2<
// Use commander as a way to communicate info about the service. We don't actually *use*
// commander for anything besides the ability to run `ts-node ./service.ts --help`.
const program = new Command()
const program = new Command().allowUnknownOption(true)
for (const [optionName, optionSpec] of Object.entries(params.optionsSpec)) {
// Skip options that are not meant to be used by the user.
if (['useEnv', 'useArgv'].includes(optionName)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment