From f6e126dfccb3bf605d66e25f4513ba3cff4e1aa9 Mon Sep 17 00:00:00 2001 From: Kevin Baensch Date: Fri, 18 Nov 2022 11:56:29 +0100 Subject: [PATCH] myssh: Print help text --- script/myssh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/script/myssh b/script/myssh index b2434f0..1231653 100755 --- a/script/myssh +++ b/script/myssh @@ -3,12 +3,12 @@ [ -z $SQL_PROXY_HOST ] && SQL_PROXY_HOST="localhost" CONNECTION_CACHE="$HOME/.cache/sqlproxy_$SQL_PROXY_HOST" -HELP="Usage: myssh [ls|connect] -SUBCOMMANDS: - ls: list available database hosts - connect: connect to a database host - disconnect: Quit existing ssh master session - +HELP="Usage: myssh [ls|connect]\n +SUBCOMMANDS:\n + ls: list available database hosts\n + connect: connect to a database host\n + disconnect: Quit existing ssh master session\n +\n SYNTAX connect host [-u user] [-p password] [-c client] " @@ -95,5 +95,5 @@ case $MAIN_OPTION in disconnect) disconnect;; *) - echo -e "Usage: myssh [ls|connect]\n\n";; + echo -e $HELP;; esac