./ctdldump -y -h./data | ./ctdlload -y -h./newdata
authorArt Cancro <ajc@citadel.org>
Wed, 12 Jul 2023 20:27:58 +0000 (11:27 -0900)
committerArt Cancro <ajc@citadel.org>
Wed, 12 Jul 2023 20:27:58 +0000 (11:27 -0900)
citadel/utils/ctdldump.c
citadel/utils/ctdlload.c

index aeb90c10f568bf326fefb1555ceb933dfa00c128..64d19f3cd4b1979383d256e4ca412e923927f9fd 100644 (file)
@@ -471,19 +471,16 @@ int main(int argc, char **argv) {
 
        // Parse command line
        int a;
-       while ((a = getopt(argc, argv, "h:d:y")) != EOF) {
+       while ((a = getopt(argc, argv, "h:y")) != EOF) {
                switch (a) {
                case 'h':
                        src_dir = optarg;
                        break;
-               case 'd':
-                       dst_dir = optarg;
-                       break;
                case 'y':
                        confirmed = 1;
                        break;
                default:
-                       fprintf(stderr, "%s: usage: %s -s source_dir -d dest_dir\n", argv[0], argv[0]);
+                       fprintf(stderr, "%s: usage: %s -s source_dir [>dumpfile]\n", argv[0], argv[0]);
                        exit(2);
                }
        }
index c7082c6809bcf455ad6c091d1714dd44f1cc2761..158635005f1699c6082c1c8cb92da3faa79d1ce0 100644 (file)
@@ -176,7 +176,7 @@ int main(int argc, char **argv) {
 
        // Parse command line
        int a;
-       while ((a = getopt(argc, argv, "h:d:y")) != EOF) {
+       while ((a = getopt(argc, argv, "h:y")) != EOF) {
                switch (a) {
                case 'h':
                        dst_dir = optarg;
@@ -185,7 +185,7 @@ int main(int argc, char **argv) {
                        confirmed = 1;
                        break;
                default:
-                       fprintf(stderr, "%s: usage: %s -s source_dir -d dest_dir\n", argv[0], argv[0]);
+                       fprintf(stderr, "%s: usage: %s -h dest_dir [<dumpfile]\n", argv[0], argv[0]);
                        exit(2);
                }
        }