crosvm: cmdline: Improve "devices"'s help for block device

Describe the `vhost=<socket>` option, which is not in `crosvm run`'s
help.

BUG=none
TEST=crosvm devices --help

Change-Id: If95e3eaf8d11632de9034a3ac3b44ecd377e887a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4054810
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Auto-Submit: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Keiichi Watanabe 2022-11-24 17:54:10 +09:00 committed by crosvm LUCI
parent d9d74da342
commit 6adf8e8a15

View file

@ -93,7 +93,14 @@ pub struct DevicesCommand {
pub serial: Vec<VhostUserParams<SerialParameters>>,
#[argh(option, arg_name = "block options")]
/// start a block device (see help from run command for options)
/// start a block device.
/// The value must be a comma separated key-value pairs in the
/// form of `vhost=PATH[,block options]`.
/// Possible key values:
/// vhost=PATH - Path to a vhost-user endpoint to listen to.
/// This parameter must be given in first position.
/// block options:
/// See help from `crosvm run` command.
pub block: Vec<VhostUserParams<DiskOption>>,
#[argh(option, short = 's', arg_name = "PATH")]