diff options
author | Teddy Wing | 2021-06-06 20:12:50 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-06 20:12:50 +0200 |
commit | 1d1850a9d331c29882954625d7d3020cd8dc27ab (patch) | |
tree | dad9f34055002c3d23f12b9bc5f952a7ec3d886f /src/main.rs | |
parent | 177ba20c66b81794d539a5fa0500cf0a9e0ef259 (diff) | |
download | reflectub-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.rs | 2 |
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), |