diff options
author | Timo Weingärtner <timo@tiwe.de> | 2013-06-20 15:51:30 +0200 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2013-06-20 15:51:30 +0200 |
commit | 07557734129cd53acb5eff9d59b0d6144925e3e7 (patch) | |
tree | 7ad4776244e099c5607183f56904914884f00054 | |
parent | 3c431f0dfb0223f95bf318d4fe209a81f36e88d1 (diff) | |
download | ssh-agent-filter-07557734129cd53acb5eff9d59b0d6144925e3e7.tar.gz |
afssh: factor out usage
-rwxr-xr-x | afssh | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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 |