summaryrefslogtreecommitdiff
path: root/sql/mysql_install_db.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-02-03 18:56:30 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-02-03 18:56:30 +0100
commitd99fbf4867db99b79385565f2b8ac9f164462240 (patch)
treeeffd31801afceeb5f4d3254977d6678ed9ec0bc6 /sql/mysql_install_db.cc
parent3cb88652ddc711954e9f18ad2799c57997c9fd1a (diff)
downloadmariadb-git-d99fbf4867db99b79385565f2b8ac9f164462240.tar.gz
MWL#55 : Add banner text to command line utilities
(Philip's review)
Diffstat (limited to 'sql/mysql_install_db.cc')
-rw-r--r--sql/mysql_install_db.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/mysql_install_db.cc b/sql/mysql_install_db.cc
index 3f712b196d4..4541d48dcd1 100644
--- a/sql/mysql_install_db.cc
+++ b/sql/mysql_install_db.cc
@@ -13,6 +13,12 @@
#include <accctrl.h>
#include <aclapi.h>
+#define USAGETEXT \
+"mysql_install_db.exe Ver 1.42 for Windows\n" \
+"This software comes with ABSOLUTELY NO WARRANTY. This is free software,\n" \
+"and you are welcome to modify and redistribute it under the GPL v2 license\n" \
+"Usage: mysql_install_db.exe [OPTIONS]\n" \
+"OPTIONS:"
extern "C" const char mysql_bootstrap_sql[];
@@ -69,6 +75,7 @@ get_one_option(int optid,
DBUG_ENTER("get_one_option");
switch (optid) {
case '?':
+ printf("%s\n", USAGETEXT);
my_print_help(my_long_options);
exit(0);
break;