From 656192e27345d1706cca8b0f8c331575372913fe Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 7 Jun 2022 13:53:35 -0700 Subject: [PATCH] crosvm: tweak create_qcow2 usage text The description for the command would get lumped together into a single line by argh, so move the description of which options are valid together into the descriptions of those options instead. BUG=None TEST=crosvm create_qcow2 --help Change-Id: Ie465a678de1df063e921d0f308b214c5a6b103c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3694096 Reviewed-by: Anton Romanov Tested-by: kokoro Commit-Queue: Daniel Verkamp --- src/crosvm.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/crosvm.rs b/src/crosvm.rs index 79f8e07d12..643df43332 100644 --- a/src/crosvm.rs +++ b/src/crosvm.rs @@ -153,14 +153,16 @@ pub struct CreateCompositeCommand { #[derive(FromArgs)] #[argh(subcommand, name = "create_qcow2")] /// Create Qcow2 image given path and size -/// Either SIZE or --backing-file need to be specified pub struct CreateQcow2Command { #[argh(positional, arg_name = "PATH")] + /// path to the new qcow2 file to create pub file_path: String, #[argh(positional, arg_name = "SIZE")] + /// desired size of the image in bytes; required if not using --backing-file pub size: Option, #[argh(option)] - /// path to backing file + /// path to backing file; if specified, the image will be the same size as the backing file, and + /// SIZE may not be specified pub backing_file: Option, }