We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1318571 + 0222faf commit 1c921efCopy full SHA for 1c921ef
src/arguments/list.rs
@@ -71,6 +71,10 @@ impl SubcommandExecutor for ListArgs {
71
.map_err(|e| eyre!("Error during JSON serialization: {:?}", e))?;
72
print!("{stringified}");
73
} else {
74
+ if otp_database.elements.is_empty() {
75
+ println!("No elements to list");
76
+ return Ok(otp_database);
77
+ }
78
let issuer_width = calculate_width(&otp_database, |element| {
79
let issuer_length = element.issuer.chars().count();
80
if issuer_length > 0 {
0 commit comments