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@hexad.dk <kenneth@hexad.dk@59da171f-624f-0410-aa54-27559c288bec>2013-01-22 20:12:24 +0400
committerkenneth@hexad.dk <kenneth@hexad.dk@59da171f-624f-0410-aa54-27559c288bec>2013-01-22 20:12:24 +0400
commitbc099b0f97b65c9fde39c7d7e810d51072b5072f (patch)
treea88bd613bc2d4222a79c1b0f200255f8cde6eafc /Duplicati/CommandLine/Help.cs
parent781cf132d933d4897df84663759e91443048b34c (diff)
Update issue #766
Refactored the patch from issue #766 Moved reading into a function in the utility module. Moved parsing of file data into a function. Added parameters to the command line client, such that the CLI may have options. Implemented these options in the help output, so the --parameters-file can be viewed from the help. git-svn-id: https://duplicati.googlecode.com/svn/trunk@1511 59da171f-624f-0410-aa54-27559c288bec
Diffstat (limited to 'Duplicati/CommandLine/Help.cs')
-rw-r--r--Duplicati/CommandLine/Help.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Duplicati/CommandLine/Help.cs b/Duplicati/CommandLine/Help.cs
index 47f1076e5..0eb63a4a2 100644
--- a/Duplicati/CommandLine/Help.cs
+++ b/Duplicati/CommandLine/Help.cs
@@ -99,6 +99,11 @@ namespace Duplicati.CommandLine
foreach (Library.Interface.ICommandLineArgument arg in opts.SupportedCommands)
sorted.Add(arg.Name, arg);
+ foreach (Library.Interface.ICommandLineArgument arg in Program.SupportedCommands)
+
+ sorted.Add(arg.Name, arg);
+
+
foreach (Library.Interface.ICommandLineArgument arg in sorted.Values)
lines.Add(PrintArgSimple(arg, arg.Name));
@@ -111,6 +116,12 @@ namespace Duplicati.CommandLine
foreach (Library.Interface.ICommandLineArgument arg in opts.SupportedCommands)
Library.Interface.CommandLineArgument.PrintArgument(lines, arg, " ");
+
+
+ foreach (Library.Interface.ICommandLineArgument arg in Program.SupportedCommands)
+
+ Library.Interface.CommandLineArgument.PrintArgument(lines, arg, " ");
+
lines.Add("");
lines.Add("");
lines.Add(Strings.Program.SupportedBackendsHeader);
@@ -396,6 +407,8 @@ namespace Duplicati.CommandLine
Library.Main.Options opts = new Library.Main.Options(new Dictionary<string, string>());
List<IList<Library.Interface.ICommandLineArgument>> foundArgs = new List<IList<Library.Interface.ICommandLineArgument>>();
foundArgs.Add(new Library.Main.Options(new Dictionary<string, string>()).SupportedCommands);
+ foundArgs.Add(Program.SupportedCommands);
+
foreach (Duplicati.Library.Interface.IBackend backend in Library.DynamicLoader.BackendLoader.Backends)
if (backend.SupportedCommands != null)
foundArgs.Add(backend.SupportedCommands);