coren has submitted this change and it was merged. Change subject: improved a help of sql command a bit ......................................................................
improved a help of sql command a bit Change-Id: Idb74f2161647a7afcdc4e07f833f277c7d302542 --- M modules/toollabs/files/sql 1 file changed, 7 insertions(+), 2 deletions(-) Approvals: coren: Verified; Looks good to me, approved diff --git a/modules/toollabs/files/sql b/modules/toollabs/files/sql index 79a2d03..6485f64 100755 --- a/modules/toollabs/files/sql +++ b/modules/toollabs/files/sql @@ -12,15 +12,20 @@ } if [ $# -lt 1 ];then - echo "Usage: sql <database name|wiki name> [-v]" + echo "Usage: \"sql <database name|wiki name> [-vh]\" type sql --help for more help" exit 0 fi if [ "$1" = "-h" ] || [ "$1" == "--help" ];then + echo "Usage: sql <database>[_p] [-vh]" + echo echo "This tool allows you to easily open a connection to sql database without having to provide the credentials or a database host server" echo "Example: sql frwiki_p" + echo echo "Parameters:" echo " -v: verbose - produce various information about the resolution of db" + echo + echo "Report bugs to bugzilla at http://bugzilla.wikimedia.org" exit 0 fi @@ -71,7 +76,7 @@ ;; "local") server=tools-db - db="mysql" + db="" if [ -f ~/.my.cnf ];then param="" fi -- To view, visit https://gerrit.wikimedia.org/r/66262 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Idb74f2161647a7afcdc4e07f833f277c7d302542 Gerrit-PatchSet: 3 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Petrb <benap...@gmail.com> Gerrit-Reviewer: coren <mpellet...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits