aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2021-06-06 20:12:50 +0200
committerTeddy Wing2021-06-06 20:12:50 +0200
commit1d1850a9d331c29882954625d7d3020cd8dc27ab (patch)
treedad9f34055002c3d23f12b9bc5f952a7ec3d886f /src/main.rs
parent177ba20c66b81794d539a5fa0500cf0a9e0ef259 (diff)
downloadreflectub-1d1850a9d331c29882954625d7d3020cd8dc27ab.tar.bz2
main: Add a comment about the repo size flag parse error handling
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
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),