diff options
-rw-r--r-- | src/cli.rs | 6 | ||||
-rw-r--r-- | src/commands/util.rs | 5 |
2 files changed, 8 insertions, 3 deletions
@@ -28,7 +28,7 @@ pub fn cli<'a>() -> App<'a> { .about("Generic Build Orchestration System for building linux packages with docker") .after_help(r#" - The folowing environment variables can be passed to butido: + The following environment variables can be passed to butido: RUST_LOG - to enable logging, for exact usage see the rust cookbook PAGER - to change the pager @@ -734,14 +734,14 @@ pub fn cli<'a>() -> App<'a> { .multiple(false) .index(1) .value_name("PKG") - .about("Verify the sources of this package (optional, if left out, all packages are checked)") + .about("Download the sources of this package (optional, if left out, all packages are downloaded)") ) .arg(Arg::new("package_version") .required(false) .multiple(false) .index(2) .value_name("VERSION_CONSTRAINT") - .about("Verify the sources of this package version (optional, if left out, all packages are checked)") + .about("Download the sources of this package version (optional, if left out, all packages are downloaded)") ) .arg(Arg::new("force") .required(false) diff --git a/src/commands/util.rs b/src/commands/util.rs index 9ed38d9..e892875 100644 --- a/src/commands/util.rs +++ b/src/commands/util.rs @@ -47,6 +47,11 @@ where I: Iterator<Item = &'a Package> + 'a, { let shebang = Shebang::from(config.shebang().clone()); + bar.set_length({ + let (lower, upper) = iter.size_hint(); + upper.unwrap_or(lower) as u64 + }); + let lint_results = iter .map(|pkg| { let shebang = shebang.clone(); |