add --version, [-h | --help], -v
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5328 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
usage="Usage: $0 [-l username] [-k] [-t args_to_telnet] [-x args_to_xterm] [-w term_emulator] [-n] host [port]"
|
usage="Usage: $0 [-l username] [-k] [-t args_to_telnet] [-x args_to_xterm] [-w term_emulator] [-n] [-v] [-h | --help] [--version] host [port]"
|
||||||
term=
|
term=
|
||||||
kx_args=-P
|
kx_args=-P
|
||||||
while true
|
while true
|
||||||
@@ -13,6 +13,10 @@ do
|
|||||||
-k) kx_args="${kx_args} -k"; shift;;
|
-k) kx_args="${kx_args} -k"; shift;;
|
||||||
-n) term=none; shift;;
|
-n) term=none; shift;;
|
||||||
-w) term=$2; shift 2;;
|
-w) term=$2; shift 2;;
|
||||||
|
--version) echo "$0: %PACKAGE% %VERSION%"; exit 0;;
|
||||||
|
-h) echo $usage; exit 0;;
|
||||||
|
--help) echo $usage; exit 0;;
|
||||||
|
-v) set -x; shift;;
|
||||||
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
||||||
*) break;;
|
*) break;;
|
||||||
esac
|
esac
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
usage="Usage: $0 [-l username] [-k] [-r rsh_args] [-x xterm_args] [-w term_emulator] host"
|
usage="Usage: $0 [-l username] [-k] [-r rsh_args] [-x xterm_args] [-w term_emulator] [-v] [-h | --help] [--version] host"
|
||||||
term=xterm
|
term=xterm
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
@@ -11,6 +11,10 @@ do
|
|||||||
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
||||||
-k) kx_args="${kx_args} -k"; shift;;
|
-k) kx_args="${kx_args} -k"; shift;;
|
||||||
-w) term=$2; shift 2;;
|
-w) term=$2; shift 2;;
|
||||||
|
--version) echo "$0: %PACKAGE% %VERSION%"; exit 0;;
|
||||||
|
-h) echo $usage; exit 0;;
|
||||||
|
--help) echo $usage; exit 0;;
|
||||||
|
-v) set -x; shift;;
|
||||||
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
||||||
*) break;;
|
*) break;;
|
||||||
esac
|
esac
|
||||||
|
@@ -1,12 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
usage="Usage: $0 [-l username] [-k] host [port]"
|
usage="Usage: $0 [-l username] [-k] [-v] [-h | --help] [--version] host [port]"
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
case $1 in
|
case $1 in
|
||||||
-l) kx_args="${kx_args} -l $2"; shift 2;;
|
-l) kx_args="${kx_args} -l $2"; shift 2;;
|
||||||
-k) kx_args="${kx_args} -k"; shift;;
|
-k) kx_args="${kx_args} -k"; shift;;
|
||||||
|
--version) echo "$0: %PACKAGE% %VERSION%"; exit 0;;
|
||||||
|
-h) echo $usage; exit 0;;
|
||||||
|
--help) echo $usage; exit 0;;
|
||||||
|
-v) set -x; shift;;
|
||||||
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
||||||
*) break;;
|
*) break;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user