Browse Source

Bugfix: fix integration with git command -h

"git vendor -h" produces an unhelpful message:

  $ git vendor -h
  usage: git vendor

Move some code so a proper usage message will be issued.

Note that "git vendor --help" is processed by the "git" binary (not
"git-vendor") and thus is unaffected by this change.
pull/19/head
Andrew Hastings 5 years ago
committed by Andrew Hastings
parent
commit
9eaa2c8af8
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      bin/git-vendor

+ 4
- 4
bin/git-vendor View File

@ -16,14 +16,14 @@ Usage:
EOF
}
case "$1" in
""|"-h"|"--help") _usage && exit ;;
esac
PATH=$PATH:$(git --exec-path)
. git-sh-setup
require_work_tree
case "$1" in
""|"--help") _usage && exit ;;
esac
command="$1"
shift
case "$command" in


Loading…
Cancel
Save