* Produces a new ServerConfig with updated config-file arguments, * preserving this config's CLI arguments, config path, and environment.
(fileArgs: Partial<ParsedArguments>)
| 284 | * preserving this config's CLI arguments, config path, and environment. |
| 285 | */ |
| 286 | withFileArgs(fileArgs: Partial<ParsedArguments>): ServerConfig { |
| 287 | return ServerConfig.create({ |
| 288 | cliArgs: {...this.#cliArgs}, |
| 289 | fileArgs, |
| 290 | configPath: this.#configPath, |
| 291 | env: this.#env, |
| 292 | suppressUsageStatisticsNotice: true, |
| 293 | }); |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Produces a new {@link ServerConfig} that takes reloadable options from |
no test coverage detected