added more useful messaging for flags without extended help text

This commit is contained in:
Valerie Wolfe 2023-12-07 11:09:52 -05:00
parent 98095c1e6b
commit 797a22324b
2 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,7 @@
//! help and list text //! help and list text
use std::process::exit;
use crate::VERSION; use crate::VERSION;
/// displays the program's help text /// displays the program's help text
@ -156,7 +158,11 @@ names:
_ _
=> { help_text(); } => {
println!("pride: no help found for {flag}!\n");
help_text();
exit(1);
}
} }
} }

View file

@ -158,8 +158,8 @@ fn main() {
Some("pansexual" | "pan") Some("pansexual" | "pan")
=> flag::pansexual(), => flag::pansexual(),
Some("polyamory" | "polyamorous" | "poly") // Some("polyamory" | "polyamorous" | "poly")
=> complex::polyamory(small), // => complex::polyamory(small),
Some("polysexual") Some("polysexual")
=> flag::polysexual(), => flag::polysexual(),