mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
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 <romanton@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
0bb3f1c3eb
commit
656192e273
1 changed files with 4 additions and 2 deletions
|
@ -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<u64>,
|
||||
#[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<String>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue