diff options
| author | MarcoFalke <[email protected]> | 2019-02-12 16:39:27 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-02-12 16:39:39 -0500 |
| commit | d73918447faf168670b5dfdd55f6c19ed6dd8632 (patch) | |
| tree | 0002344cd24df3200bde079e77c6cad40f7cdd95 /test/lint | |
| parent | Merge #15378: tests: Added missing tests for RPC wallet errors (diff) | |
| parent | Replace script name with special parameter (diff) | |
| download | discoin-d73918447faf168670b5dfdd55f6c19ed6dd8632.tar.xz discoin-d73918447faf168670b5dfdd55f6c19ed6dd8632.zip | |
Merge #15216: Scripts and tools: Replace script name with a special parameter
8c9b8a3668 Replace script name with special parameter (Hennadii Stepanov)
Pull request description:
This PR improves UX; all others shell scripts ~(excluding travis linters)~ in the bitcoin repo have this feature.
Before:

After:

cc: @jamesob @laanwj
Tree-SHA512: 7924e5658a2efe81fd5591390ca5af1ff0558bd9d5693363b9f8addedb1d6b90aa16f11c9b361c6fdfbd931a959255817473a240c175dee95aefc7d2d4a10a36
Diffstat (limited to 'test/lint')
| -rwxr-xr-x | test/lint/lint-whitespace.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lint/lint-whitespace.sh b/test/lint/lint-whitespace.sh index f318e1907..d5c1dee42 100755 --- a/test/lint/lint-whitespace.sh +++ b/test/lint/lint-whitespace.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # -# Copyright (c) 2017 The Bitcoin Core developers +# Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # @@ -12,11 +12,11 @@ export LC_ALL=C while getopts "?" opt; do case $opt in ?) - echo "Usage: .lint-whitespace.sh [N]" - echo " TRAVIS_COMMIT_RANGE='<commit range>' .lint-whitespace.sh" - echo " .lint-whitespace.sh -?" + echo "Usage: $0 [N]" + echo " TRAVIS_COMMIT_RANGE='<commit range>' $0" + echo " $0 -?" echo "Checks unstaged changes, the previous N commits, or a commit range." - echo "TRAVIS_COMMIT_RANGE='47ba2c3...ee50c9e' .lint-whitespace.sh" + echo "TRAVIS_COMMIT_RANGE='47ba2c3...ee50c9e' $0" exit 0 ;; esac |