From: Shane Jaroch Date: Thu, 8 Jan 2026 21:37:08 +0000 (-0500) Subject: simpler X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=28a46f5be8c932b6a3d149e7cf4b27b5702f0d22;p=gamesguru%2Fgit-remote-gcrypt.git simpler --- diff --git a/git-remote-gcrypt b/git-remote-gcrypt index c9bfcaf..a71c53f 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -86,6 +86,7 @@ while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do case "$1" in --force|-f) FORCE_CLEAN=yes ;; + help|--help|-h) show_help; exit 0 ;; -*) echo "Unknown option: $1" >&2; exit 1 ;; *) if [ -z "$URL" ]; then @@ -227,7 +228,7 @@ resolve_url() { local cmd="$1" if [ -z "$URL" ]; then local remotes - remotes=$(git remote -v | grep 'gcrypt::' | awk '{print $1}' | sort -u || :) + remotes=$(git remote -v | grep 'gcrypt::' || :) echo "Usage: git-remote-gcrypt $cmd [URL|REMOTE]" >&2 if [ -n "$remotes" ]; then echo "Error: No URL or remote specified. Available gcrypt remotes:" >&2