Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2021-03-06 16:50:48 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2021-03-06 16:50:48 +0300
commitc416221c17f7bd19b571bb7976b430c95cc70920 (patch)
tree4c6de076e42604c4a4eaff627e9513d9522aa641 /Duplicati/CommandLine
parent973307cefc63332392b967be5487a7236aa85bc5 (diff)
Changed the help output to not show deprecated options.
Commandline help for azure now shows a little cleaner
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r--Duplicati/CommandLine/Help.cs11
-rw-r--r--Duplicati/CommandLine/help.txt10
2 files changed, 16 insertions, 5 deletions
diff --git a/Duplicati/CommandLine/Help.cs b/Duplicati/CommandLine/Help.cs
index 843396fc6..57eaa10cf 100644
--- a/Duplicati/CommandLine/Help.cs
+++ b/Duplicati/CommandLine/Help.cs
@@ -433,10 +433,10 @@ namespace Duplicati.CommandLine
public Matcher()
{
- List<IList<Library.Interface.ICommandLineArgument>> foundArgs = new List<IList<Library.Interface.ICommandLineArgument>>
- {
- new Library.Main.Options(new Dictionary<string, string>()).SupportedCommands,
- Program.SupportedOptions
+ List<IList<Library.Interface.ICommandLineArgument>> foundArgs = new List<IList<Library.Interface.ICommandLineArgument>>
+ {
+ new Library.Main.Options(new Dictionary<string, string>()).SupportedCommands,
+ Program.SupportedOptions
};
foreach (Duplicati.Library.Interface.IBackend backend in Library.DynamicLoader.BackendLoader.Backends)
@@ -490,7 +490,8 @@ namespace Duplicati.CommandLine
List<string> lines = new List<string>();
foreach(Duplicati.Library.Interface.ICommandLineArgument arg in args)
- lines.Add(PrintArgSimple(arg, arg.Name));
+ if (!arg.Deprecated)
+ lines.Add(PrintArgSimple(arg, arg.Name));
return string.Join(Environment.NewLine, lines.ToArray());
}
diff --git a/Duplicati/CommandLine/help.txt b/Duplicati/CommandLine/help.txt
index 211c6587f..c4a42da76 100644
--- a/Duplicati/CommandLine/help.txt
+++ b/Duplicati/CommandLine/help.txt
@@ -390,6 +390,16 @@ Options:
# =============================================================================
+> duplicati.commandline.exe help azure
+
+Duplicati can use Azure blob storage to store backups. The following target URL format is used:
+ azure://bucketname
+
+Options:
+%MODULEOPTIONS%
+
+
+# =============================================================================
> duplicati.commandline.exe help onedrive
Duplicati can use Microsoft Onedrive to store backups. The following target URL format is used: