From 3d194e8da57a38e1bf89eeb311ce3751e46fcb6c Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Tue, 28 Jan 2025 14:39:29 +0100 Subject: [PATCH] Reworded confirm commandline option description --- Duplicati/UnitTest/ToolTests.cs | 3 ++- Tools/RemoteSynchronization/Program.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Duplicati/UnitTest/ToolTests.cs b/Duplicati/UnitTest/ToolTests.cs index bd57e6506..4d8072151 100644 --- a/Duplicati/UnitTest/ToolTests.cs +++ b/Duplicati/UnitTest/ToolTests.cs @@ -76,7 +76,8 @@ namespace Duplicati.UnitTest $"file://{l1}", $"file://{l2}", // Pass along multi token options to test that the parser won't fail "--src-options", "ssh-accept-any-fingerprints=true", "ssh-keyfile=/path/to/keyfile", - "--dst-options", "some-other-key=value", "another-key=value2" + "--dst-options", "some-other-key=value", "another-key=value2", + "--confirm" }; var async_call = exe(args); async_call.Wait(); diff --git a/Tools/RemoteSynchronization/Program.cs b/Tools/RemoteSynchronization/Program.cs index 65e61b26f..eaad0acfe 100644 --- a/Tools/RemoteSynchronization/Program.cs +++ b/Tools/RemoteSynchronization/Program.cs @@ -53,7 +53,7 @@ namespace RemoteSynchronization var retry_opt = new Option(aliases: ["--retry"], description: "Number of times to retry on errors", getDefaultValue: () => DEFAULT_RETRY) { Arity = ArgumentArity.ExactlyOne }; var force_opt = new Option(aliases: ["--force"], description: "Force the synchronization", getDefaultValue: () => DEFAULT_FORCE); var retention_opt = new Option(aliases: ["--retention"], description: "Toggles whether to keep old files. Any deletes will be renames instead", getDefaultValue: () => DEFAULT_RETENTION); - var confirm_opt = new Option(aliases: ["--confirm"], description: "Ask for confirmation before starting the synchronization", getDefaultValue: () => DEFAULT_CONFIRM); + var confirm_opt = new Option(aliases: ["--confirm"], description: "Automatically confirm the operation", getDefaultValue: () => DEFAULT_CONFIRM); var root_cmd = new RootCommand("Remote Synchronization Tool"); root_cmd.AddArgument(src_arg);