]> code.citadel.org Git - citadel.git/blobdiff - citadel/utils/ctdlload.c
Beautiful startup banners in vivid color
[citadel.git] / citadel / utils / ctdlload.c
index b948d5a3f763bc891bdeabfb61ae5f7e8bd8cb3f..267c4db4419668dc2be5b716423f2b70f057b617 100644 (file)
@@ -610,6 +610,14 @@ int main(int argc, char **argv) {
        int confirmed = 0;
        static DB_ENV *dst_dbenv;               // Source DB environment (global)
 
+       // display the greeting
+       fprintf(stderr, "\033[42m\033[30m \033[K\033[0m\n"
+                       "\033[42m\033[30m DB Load utility for Citadel \033[K\033[0m\n"
+                       "\033[42m\033[30m Copyright (c) 2023 by citadel.org et al.  \033[K\033[0m\n"
+                       "\033[42m\033[30m This program is open source software.  Use, duplication, or disclosure \033[K\033[0m\n"
+                       "\033[42m\033[30m is subject to the terms of the GNU General Public license v3. \033[K\033[0m\n"
+                       "\033[42m\033[30m \033[K\033[0m\n");
+
        // Parse command line
        int a;
        while ((a = getopt(argc, argv, "h:y")) != EOF) {
@@ -627,10 +635,10 @@ int main(int argc, char **argv) {
        }
 
        if (confirmed == 1) {
-               fprintf(stderr,"You have specified the [-y] flag, so processing will continue.\n");
+               fprintf(stderr, "ctdlload: You have specified the [-y] flag, so processing will continue.\n");
        }
        else {
-               fprintf(stderr,"Please read [ https://www.citadel.org/ctdlload.html ] to learn how to proceed.\n");
+               fprintf(stderr, "ctdlload: Please read [ https://www.citadel.org/ctdlload.html ] to learn how to proceed.\n");
                exit(0);
        }