Skip to content

Commit

Permalink
Improve help output
Browse files Browse the repository at this point in the history
  • Loading branch information
stilvoid committed Jan 10, 2025
1 parent b94c14e commit d66f26f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions git-get
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ fi

repo="$1"

if [ -z "$repo" ]; then
echo "Usage git get <repository>"
if [ -z "$repo" ] || [ "$repo" == "-h" ]; then
echo "Usage: git get <repository>"
echo
echo " git-get clones <repository> into a folder derived from the repository URL"
echo
Expand All @@ -22,7 +22,12 @@ if [ -z "$repo" ]; then
echo
echo " You can override the default base path (~/code) with"
echo " git config --global get.loation \"/path/to/your/code\""
exit 1

if [ "$repo" == "-h" ]; then
exit
else
exit 1
fi
fi

# Strip scheme
Expand Down

0 comments on commit d66f26f

Please sign in to comment.