diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-09-23 14:38:02 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-09-23 14:38:02 +0300 |
commit | 3c1d7c4b1ffa10bce847597df51c3d6109ea6125 (patch) | |
tree | 4196076ee2aa5dd19bc2fdaa9af70352e2e7c800 /.bash_utils | |
parent | add .ssh/ (diff) | |
download | linux-home-3c1d7c4b1ffa10bce847597df51c3d6109ea6125.tar.gz linux-home-3c1d7c4b1ffa10bce847597df51c3d6109ea6125.zip |
make usage messages consistent
Diffstat (limited to '.bash_utils')
-rw-r--r-- | .bash_utils/cxx.sh | 4 | ||||
-rw-r--r-- | .bash_utils/text.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.bash_utils/cxx.sh b/.bash_utils/cxx.sh index 49d4549..527c120 100644 --- a/.bash_utils/cxx.sh +++ b/.bash_utils/cxx.sh @@ -27,7 +27,7 @@ runc() ( ;; -h|--help) - echo "usage: ${FUNCNAME[0]} [-h|--help] [-c|--c-flags FLAG]" + echo "usage: ${FUNCNAME[0]} [-h|--help] [-c|--c-flags FLAG]... [--] [SRC_PATH]..." return 0 ;; @@ -83,7 +83,7 @@ runcxx() ( ;; -h|--help) - echo "usage: ${FUNCNAME[0]} [-h|--help] [-c|--cxx-flags FLAG]" + echo "usage: ${FUNCNAME[0]} [-h|--help] [-c|--cxx-flags FLAG]... [--] [SRC_PATH]..." return 0 ;; diff --git a/.bash_utils/text.sh b/.bash_utils/text.sh index 71ee38c..ad3f203 100644 --- a/.bash_utils/text.sh +++ b/.bash_utils/text.sh @@ -30,7 +30,7 @@ replace_word() ( set -o errexit -o nounset -o pipefail if [ "$#" -lt 3 ]; then - echo "usage: ${FUNCNAME[0]} OLD NEW PATH [PATH...]" >&2 + echo "usage: ${FUNCNAME[0]} OLD NEW PATH..." >&2 return 1 fi |