mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
With `.num_args(1..)`, multiple values can be specified for a CLI option, but the option cannot be specified more than once. In my experience, it’s more common to specify flags with a single argument multiple times to specify multiple arguments. One might thus expect to call cloud-hypervisor with e.g. `--disk path=foo --disk path==bar`. With this commit, both `--disk path=foo path=bar path=baz` and `--disk path=foo -disk path=bar path=baz` (note: combinations as well) are allowed. Signed-off-by: Sebastian Walz <sebastian.walz@secunet.com>