aboutsummaryrefslogtreecommitdiff
path: root/afssh
diff options
context:
space:
mode:
Diffstat (limited to 'afssh')
-rwxr-xr-xafssh16
1 files changed, 10 insertions, 6 deletions
diff --git a/afssh b/afssh
index 12ad1d8..84b8545 100755
--- a/afssh
+++ b/afssh
@@ -22,6 +22,15 @@
set -e
+usage () {
+ echo "usage: afssh [ssh-agent-filter options] -- [ssh options]"
+ echo
+ "$SAF" --help
+ echo
+ ssh --help
+ exit
+}
+
declare -a agent_filter_args
if [ -x "${BASH_SOURCE%/*}/ssh-agent-filter" ]; then
@@ -32,12 +41,7 @@ fi
while true; do
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
- echo "usage: afssh [ssh-agent-filter options] -- [ssh options]"
- echo
- "$SAF" --help
- echo
- ssh --help
- exit
+ usage
elif [ "$1" = "--" ]; then
shift
break