rust/library
Matthias Krüger 76f968dadc
Rollup merge of #99100 - Smittyvb:test-cli-binary-name, r=thomcc
Fix binary name in help message for test binaries

Currently the help output for a test binary uses the first argument instead of the binary name in the help output:

```
$ cargo test -- --help
...
Usage: --help [OPTIONS] [FILTERS...]
...
```

This fixes it to use the name of the binary (or `...` if there is no binary name passed on argv):

```
$ cargo test -- --help
...
Usage: /tmp/x/target/debug/deps/x-80c11a15ad4e1bf3 [OPTIONS] [FILTERS...]
...
```
2022-07-10 11:52:16 +02:00
..
2022-05-20 09:30:26 +02:00
2022-06-03 17:16:41 -04:00
2022-05-27 07:36:17 -04:00
2022-06-28 09:54:29 -04:00
2022-06-03 17:16:41 -04:00
2022-07-01 15:48:23 +02:00