From: Art Cancro Date: Wed, 12 Jul 2023 20:27:58 +0000 (-0900) Subject: ./ctdldump -y -h./data | ./ctdlload -y -h./newdata X-Git-Tag: v981~21 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=2c809b553bf9d0f06f779d6b35219a2b4f77aeb1;p=citadel.git ./ctdldump -y -h./data | ./ctdlload -y -h./newdata --- diff --git a/citadel/utils/ctdldump.c b/citadel/utils/ctdldump.c index aeb90c10f..64d19f3cd 100644 --- a/citadel/utils/ctdldump.c +++ b/citadel/utils/ctdldump.c @@ -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); } } diff --git a/citadel/utils/ctdlload.c b/citadel/utils/ctdlload.c index c7082c680..158635005 100644 --- a/citadel/utils/ctdlload.c +++ b/citadel/utils/ctdlload.c @@ -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 [