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:
parent
3e3566ea3c
commit
c8ea855451
1 changed files with 2 additions and 2 deletions
|
@ -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!(),
|
||||
_ => (),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue