diff options
Diffstat (limited to 'bin/vcs')
-rwxr-xr-x | bin/vcs | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -214,15 +214,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -232,24 +232,24 @@ while getopts 'C:lth' flag; do C) cd "$OPTARG" ;; - l) + (l) # shellcheck disable=2086 echo $TYPES | tr ' ' '\n' exit ;; - t) + (t) guess_type "$PWD" || { printf 'Could not guess the type of the repository.\n' >&2 exit 2 } exit ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 esac |