myssh: Print help text
This commit is contained in:
parent
7240d0fcea
commit
f6e126dfcc
1 changed files with 7 additions and 7 deletions
14
script/myssh
14
script/myssh
|
@ -3,12 +3,12 @@
|
||||||
[ -z $SQL_PROXY_HOST ] && SQL_PROXY_HOST="localhost"
|
[ -z $SQL_PROXY_HOST ] && SQL_PROXY_HOST="localhost"
|
||||||
CONNECTION_CACHE="$HOME/.cache/sqlproxy_$SQL_PROXY_HOST"
|
CONNECTION_CACHE="$HOME/.cache/sqlproxy_$SQL_PROXY_HOST"
|
||||||
|
|
||||||
HELP="Usage: myssh [ls|connect]
|
HELP="Usage: myssh [ls|connect]\n
|
||||||
SUBCOMMANDS:
|
SUBCOMMANDS:\n
|
||||||
ls: list available database hosts
|
ls: list available database hosts\n
|
||||||
connect: connect to a database host
|
connect: connect to a database host\n
|
||||||
disconnect: Quit existing ssh master session
|
disconnect: Quit existing ssh master session\n
|
||||||
|
\n
|
||||||
SYNTAX connect host [-u user] [-p password] [-c client]
|
SYNTAX connect host [-u user] [-p password] [-c client]
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -95,5 +95,5 @@ case $MAIN_OPTION in
|
||||||
disconnect)
|
disconnect)
|
||||||
disconnect;;
|
disconnect;;
|
||||||
*)
|
*)
|
||||||
echo -e "Usage: myssh [ls|connect]\n\n";;
|
echo -e $HELP;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue