diff options
| author | Ed Page <eopage@gmail.com> | 2025-01-27 13:49:28 -0600 |
|---|---|---|
| committer | Ed Page <eopage@gmail.com> | 2025-04-17 13:30:59 -0500 |
| commit | 11f7290c9f9122c5f2c47802c1883b2a0a04aed9 (patch) | |
| tree | 37159a891d462c750071a2ba4fce0aaf3166773f /library/test | |
| parent | 883f9f72e87ccb6838d528d8158ea6323baacc65 (diff) | |
| download | rust-11f7290c9f9122c5f2c47802c1883b2a0a04aed9.tar.gz rust-11f7290c9f9122c5f2c47802c1883b2a0a04aed9.zip | |
refactor(test): Decouple parsing from help generation
This will help with hiding some options in `--help`
Diffstat (limited to 'library/test')
| -rw-r--r-- | library/test/src/cli.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/test/src/cli.rs b/library/test/src/cli.rs index ef6786f4316..b532bfbea4d 100644 --- a/library/test/src/cli.rs +++ b/library/test/src/cli.rs @@ -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; } |
