main: Fix help for create_qcow2

The size is specified in bytes, correct the help messages.

Change-Id: I386b329123bbfc9dfdaf073eb345c4554ade4982
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1145763
Reviewed-by: Stephen Barber <smbarber@chromium.org>
This commit is contained in:
Dylan Reid 2018-07-20 14:22:33 -07:00 committed by chrome-bot
parent a697d31fc6
commit 940259c548

View file

@ -546,7 +546,7 @@ fn balloon_vms(mut args: std::env::Args) -> std::result::Result<(), ()> {
fn create_qcow2(mut args: std::env::Args) -> std::result::Result<(), ()> {
if args.len() != 2 {
print_help("crosvm create_qcow2", "PATH SIZE", &[]);
println!("Create a new QCOW2 image at `PATH` of the specified `SIZE` in megabytes.");
println!("Create a new QCOW2 image at `PATH` of the specified `SIZE` in bytes.");
}
let file_path = args.nth(0).unwrap();
let size: u64 = match args.nth(0).unwrap().parse::<u64>() {