help text is now used when the '-h' or '--help' flags are detected

This commit is contained in:
Valerie Wolfe 2023-06-19 12:55:45 -04:00
parent 309f4326aa
commit 044736b535

View file

@ -8,6 +8,11 @@ mod util;
fn main() {
let mut args = Arguments::from_env();
if args.contains(["-h", "--help"]) {
command::help(&mut args);
return;
}
let subcommand = args.subcommand().unwrap();
match subcommand.as_deref() {