Implemented the flag arms for license, warranty

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<Command>.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-06-09 18:14:06 +02:00
parent 3e3566ea3c
commit c8ea855451
Signed by: cafkafk
GPG key ID: CDDC792F655251ED

View file

@ -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!(),
_ => (),
}