about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-07-10 11:52:16 +0200
committerGitHub <noreply@github.com>2022-07-10 11:52:16 +0200
commit76f968dadc75feb5580217a83d382ddb9ea15a8f (patch)
tree80976dceb68244e536c1addb245d898caa41283b /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentca51d325e8656d8bba1811f7bea6b2d82d87fb1c (diff)
parented542df9bc798bbdfe4d18308b9a6528bebf0461 (diff)
downloadrust-76f968dadc75feb5580217a83d382ddb9ea15a8f.tar.gz
rust-76f968dadc75feb5580217a83d382ddb9ea15a8f.zip
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...]
...
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions