(spec: FlagParam)
| 392 | }) |
| 393 | |
| 394 | const missingFlagValue = (spec: FlagParam): CliError.InvalidValue => { |
| 395 | const choices = Primitive.getChoiceKeys(spec.primitiveType) |
| 396 | return new CliError.InvalidValue({ |
| 397 | option: spec.name, |
| 398 | value: "", |
| 399 | expected: choices === undefined |
| 400 | ? spec.typeName ?? Primitive.getTypeName(spec.primitiveType) |
| 401 | : choices.join(" | "), |
| 402 | kind: "flag" |
| 403 | }) |
| 404 | } |
| 405 | |
| 406 | /** |
| 407 | * Checks whether a token is a boolean literal value. |
no test coverage detected