From 61fe72bb9b730ff6edf03911e3b33940bdf88e69 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Fri, 22 Dec 2023 16:14:29 -0600 Subject: [PATCH] feat: Add build-hash-table subcommand --- src/main.rs | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/main.rs b/src/main.rs index 15b661f..2a77659 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, }, } @@ -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... -} \ No newline at end of file +}