Skip to content

Commit

Permalink
feat: Add build-hash-table subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Dec 22, 2023
1 parent 9470f42 commit 61fe72b
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ struct Cli {

#[derive(Subcommand)]
enum Commands {
/// does testing things
Test {
/// lists test values
#[arg(short, long)]
list: bool,
BuildHashTable {
#[arg(short, long, value_name = "FILE")]
fasta: Option<PathBuf>,
},
}

Expand All @@ -38,15 +36,9 @@ fn main() {
// You can check for the existence of subcommands, and if found use their
// matches just as you would the top level cmd
match &cli.command {
Some(Commands::Test { list }) => {
if *list {
println!("Printing testing lists...");
} else {
println!("Not printing testing lists...");
}
}
Some(Commands::BuildHashTable { fasta }) => {}
None => {}
}

// Continued program logic goes here...
}
}

0 comments on commit 61fe72b

Please sign in to comment.