diff --git a/src/help.rs b/src/help.rs index a9f5650..e048cf1 100644 --- a/src/help.rs +++ b/src/help.rs @@ -1,6 +1,8 @@ +//! help and list text use crate::VERSION; +/// displays the program's help text pub fn help_text() { println!("pride v{VERSION} Valerie Wolfe @@ -22,6 +24,7 @@ Use 'pride --list' to see a list of printable flags ~ You're loved and you matter ♥"); } +/// shows a list of all flags pub fn list_text() { println!("pride v{VERSION} @@ -51,6 +54,7 @@ flag list: transgender transgender pride flag"); } +/// handle help details by flag pub fn flag_help(flag: &str) { match flag { "pride" | "rainbow" | "-"