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