fix & update

This commit is contained in:
2025-05-22 01:10:16 +02:00
parent df3b4c32a9
commit 37a086fb67
6 changed files with 271 additions and 367 deletions

View File

@@ -6,7 +6,7 @@ use structopt::StructOpt;
/// Parse size argument as bytes
/// e.g. 10GB, 10GiB, etc.
fn parse_bytes(src: &str) -> Result<Byte, &'static str> {
Byte::from_str(src).map_err(|_| "Invalid image size")
Byte::parse_str(src, false).map_err(|_| "Invalid image size")
}
#[derive(StructOpt)]