error output is now descriptive for invalid names

This commit is contained in:
Valerie Wolfe 2024-01-16 15:42:27 -05:00
parent 3b13b1f470
commit f2cddde6be

View file

@ -167,7 +167,12 @@ fn main() {
=> flag::transgender(), => flag::transgender(),
_ => { help::help_text(); exit(1) } _
=> {
println!("pride: no flag '{}'", subcommand.unwrap());
help::help_text();
exit(1)
}
}; };
// draw flag // draw flag