From 2c809b553bf9d0f06f779d6b35219a2b4f77aeb1 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 12 Jul 2023 11:27:58 -0900 Subject: [PATCH] ./ctdldump -y -h./data | ./ctdlload -y -h./newdata --- citadel/utils/ctdldump.c | 7 ++----- citadel/utils/ctdlload.c | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) 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 [