Skip to content

Commit

Permalink
fix: Remove unused import and fix subcommand handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Aug 11, 2024
1 parent 9634e97 commit 7eae734
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/cli/src/bin/ghostkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use ghostkey::commands::{
};
use ghostkey_lib::delegate_certificate::DelegateCertificateV1;
use ghostkey_lib::ghost_key_certificate::GhostkeyCertificateV1;
use log::info;
use std::path::Path;
use std::process;
use std::fs;
Expand Down Expand Up @@ -392,7 +391,7 @@ fn run() -> i32 {
println!("👻🔑 Welcome to the Freenet Ghost Key Utility!");
println!("Use 'ghostkey -h' for detailed usage information.");
println!("Available commands:");
for (name, cmd) in matches.get_subcommands() {
if let Some((name, cmd)) = matches.subcommand() {
println!(" {} - {}", name, cmd.get_about().unwrap_or(""));
}
0
Expand Down

0 comments on commit 7eae734

Please sign in to comment.