(ctx context.Context, o *options.Options, args []string)
| 223 | } |
| 224 | |
| 225 | func (p *Parser) applyRotateOption(ctx context.Context, o *options.Options, args []string) error { |
| 226 | if err := p.parseInt(ctx, o, keys.Rotate, args...); err != nil { |
| 227 | return err |
| 228 | } |
| 229 | |
| 230 | if options.Get(o, keys.Rotate, 0)%90 != 0 { |
| 231 | return newOptionArgumentError(ctx, keys.Rotate, "Rotation angle must be a multiple of 90") |
| 232 | } |
| 233 | |
| 234 | return nil |
| 235 | } |
| 236 | |
| 237 | func (p *Parser) applyFlipOption(ctx context.Context, o *options.Options, args []string) error { |
| 238 | if err := p.ensureMaxArgs(ctx, "flip", args, 2); err != nil { |
no test coverage detected