refactor(test): Decouple parsing from help generation

This will help with hiding some options in `--help`
This commit is contained in:
Ed Page 2025-01-27 13:49:28 -06:00
parent 2205455d44
commit ac8b0e28ee

View File

@ -210,7 +210,7 @@ pub fn parse_opts(args: &[String]) -> Option<OptRes> {
// Check if help was requested.
if matches.opt_present("h") {
// Show help and do nothing more.
usage(binary, &opts);
usage(binary, &optgroups());
return None;
}