From 1d1850a9d331c29882954625d7d3020cd8dc27ab Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 6 Jun 2021 20:12:50 +0200 Subject: main: Add a comment about the repo size flag parse error handling --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 1379e09..ecab278 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,6 +76,8 @@ fn run() -> anyhow::Result<()> { let username = &opt_matches.free[0]; let mirror_root = &opt_matches.free[1]; + // Parse the maximum repo size and return an error if it fails. If the size + // is `None`, set the value to `None`. let max_repo_size_bytes = opt_matches.opt_str("skip-larger-than") .map_or( Ok(None), -- cgit v1.2.3