added more useful messaging for flags without extended help text
This commit is contained in:
parent
98095c1e6b
commit
797a22324b
2 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
//! help and list text
|
||||
|
||||
use std::process::exit;
|
||||
|
||||
use crate::VERSION;
|
||||
|
||||
/// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -158,8 +158,8 @@ fn main() {
|
|||
Some("pansexual" | "pan")
|
||||
=> flag::pansexual(),
|
||||
|
||||
Some("polyamory" | "polyamorous" | "poly")
|
||||
=> complex::polyamory(small),
|
||||
// Some("polyamory" | "polyamorous" | "poly")
|
||||
// => complex::polyamory(small),
|
||||
|
||||
Some("polysexual")
|
||||
=> flag::polysexual(),
|
||||
|
|
Loading…
Reference in a new issue