From d9c69df50c74ec52736764ec6fae44a80a95fb9d Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Thu, 4 Mar 2021 22:40:23 -0500 Subject: better-formatted help --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2518e02..0ffe5af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,8 +2,9 @@ use std::collections::HashSet; use std::env::args; use std::io::{stdin, BufRead, BufReader}; -const HELP_MSG: &str = - "Title-Case Tool\n-i | --ignore [word...]\tA list of words that should not be corrected."; +const HELP_MSG: &str = "Title-Case Tool\n\ + -h | --help\t\t\tPrints this message\n\ + -i | --ignore [word...]\t\tA list of words that should not be corrected"; /// Words that will not be capitalized unless they are at the start or end of a title. const EXCEPTIONS: &[&str] = &[ -- cgit v1.2.3