mirror of
https://github.com/docker/cli.git
synced 2026-11-13 08:13:40 -04:00
`--gpus count=1,2` and `--gpus 1,2` silently replace the first count, while `--gpus 1,count=2` correctly reports a duplicate. Normalize shorthand counts to the `count` key before checking duplicates. Tests cover both orders, multiple shorthand values, and `all`; rejected options do not append a device request. Signed-off-by: Alexandre Rodrigues <alexandre3ylf@gmail.com>