From 3c1d7c4b1ffa10bce847597df51c3d6109ea6125 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 23 Sep 2016 14:38:02 +0300 Subject: make usage messages consistent --- .bash_utils/cxx.sh | 4 ++-- .bash_utils/text.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '.bash_utils') 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 -- cgit v1.2.3