(spec: OptionSpec)
| 106 | } |
| 107 | |
| 108 | function primaryFlagDefinition(spec: OptionSpec): FlagDefinition { |
| 109 | const definition = spec.flagDefinitions[0]; |
| 110 | if (!definition) { |
| 111 | throw new Error(`Missing flag definition for option ${spec.key}`); |
| 112 | } |
| 113 | return definition; |
| 114 | } |
| 115 | |
| 116 | export function resolveSourceValueDefinition(spec: OptionSpec): FlagDefinition { |
| 117 | const explicitValueDefinition = spec.flagDefinitions.find( |
no outgoing calls
no test coverage detected