mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
refactor(test): Decouple parsing from help generation
This will help with hiding some options in `--help`
This commit is contained in:
parent
2205455d44
commit
ac8b0e28ee
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user