opgpcard: tighten/clarify output
This commit is contained in:
parent
bb577647c4
commit
6df7e2d56f
1 changed files with 2 additions and 5 deletions
|
@ -600,15 +600,12 @@ fn pick_card_for_reading(ident: Option<String>) -> Result<Box<dyn CardBackend +
|
||||||
} else if cards.is_empty() {
|
} else if cards.is_empty() {
|
||||||
Err(anyhow::anyhow!("No cards found"))
|
Err(anyhow::anyhow!("No cards found"))
|
||||||
} else {
|
} else {
|
||||||
println!("Found {} cards:", cards.len());
|
|
||||||
// The output version for OutputFormat::Text doesn't matter (it's ignored).
|
// The output version for OutputFormat::Text doesn't matter (it's ignored).
|
||||||
list_cards(OutputFormat::Text, OutputVersion::new(0, 0, 0))?;
|
list_cards(OutputFormat::Text, OutputVersion::new(0, 0, 0))?;
|
||||||
|
|
||||||
println!();
|
println!("Specify which card to use with '--card <card ident>'\n");
|
||||||
println!("Specify which card to use with '--card <card ident>'");
|
|
||||||
println!();
|
|
||||||
|
|
||||||
Err(anyhow::anyhow!("Specify card"))
|
Err(anyhow::anyhow!("Found more than one card"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue