(parts: string[])
| 177 | } |
| 178 | |
| 179 | function extractBareValueFlags(parts: string[]): { |
| 180 | remaining: string[]; |
| 181 | optional: boolean; |
| 182 | trim: boolean; |
| 183 | } { |
| 184 | const { remaining: withoutOptional, optional } = |
| 185 | extractBareOptionalFlag(parts); |
| 186 | const { remaining, found: trim } = extractBareFlagPart( |
| 187 | withoutOptional, |
| 188 | "trim", |
| 189 | ); |
| 190 | return { remaining, optional, trim }; |
| 191 | } |
| 192 | |
| 193 | function hasRecognizedOption(part: string, allowName: boolean): boolean { |
| 194 | const trimmed = part.trim(); |
no test coverage detected