From c8ea855451ce43d382155032a01acfbc02bdeb11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Fri, 9 Jun 2023 18:14:06 +0200 Subject: [PATCH] Implemented the flag arms for license, warranty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implemented the flag arms for license, warranty in main, but this will not work before we make the clap Parser able to be run without a subcommand, by wrapping the subcommand field of the Parser struct in an Option. Signed-off-by: Christina Sørensen --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 81a937f..533899b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,8 +36,8 @@ fn main() { let args = Args::parse(); let config = Config::new(&args.config); match &args { - args if args.license == true => unimplemented!(), - args if args.warranty == true => unimplemented!(), + args if args.license == true => println!("{}", utils::strings::INTERACTIVE_LICENSE), + args if args.warranty == true => println!("{}", utils::strings::INTERACTIVE_WARRANTY), args if args.code_of_conduct == true => unimplemented!(), _ => (), }