Skip to content

Commit ac8b0e2

Browse files
committed
refactor(test): Decouple parsing from help generation
This will help with hiding some options in `--help`
1 parent 2205455 commit ac8b0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/test/src/cli.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub fn parse_opts(args: &[String]) -> Option<OptRes> {
210210
// Check if help was requested.
211211
if matches.opt_present("h") {
212212
// Show help and do nothing more.
213-
usage(binary, &opts);
213+
usage(binary, &optgroups());
214214
return None;
215215
}
216216

0 commit comments

Comments
 (0)