Shell completion generation status should print to stderr, not stdout
This commit is contained in:
parent
463130cdf8
commit
8bd3efb1c4
1 changed files with 2 additions and 2 deletions
|
@ -38,14 +38,14 @@ impl<'a> Completions<'a> {
|
|||
// Generate completions
|
||||
for shell in shells {
|
||||
if !quiet {
|
||||
print!(
|
||||
eprint!(
|
||||
"Generating completions for {}...",
|
||||
format!("{}", shell).to_lowercase()
|
||||
);
|
||||
}
|
||||
app.gen_completions(crate_name!(), shell, &dir);
|
||||
if !quiet {
|
||||
println!(" done.");
|
||||
eprintln!(" done.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue