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:
Diffstat (limited to 'Duplicati/CommandLine/Commands.cs')
-rw-r--r--Duplicati/CommandLine/Commands.cs50
1 files changed, 25 insertions, 25 deletions
diff --git a/Duplicati/CommandLine/Commands.cs b/Duplicati/CommandLine/Commands.cs
index b0edbf6db..6f5e0fef4 100644
--- a/Duplicati/CommandLine/Commands.cs
+++ b/Duplicati/CommandLine/Commands.cs
@@ -349,34 +349,34 @@ namespace Duplicati.CommandLine
}
public static int Delete(List<string> args, Dictionary<string, string> options, Library.Utility.IFilter filter)
- {
- var requiredOptions = new string[] { "keep-time", "keep-versions", "version" };
+ {
+ var requiredOptions = new string[] { "keep-time", "keep-versions", "version" };
- if (!options.Keys.Where(x => requiredOptions.Contains(x, StringComparer.InvariantCultureIgnoreCase)).Any())
- {
- Console.WriteLine(Strings.Program.DeleteCommandNeedsOptions("delete", requiredOptions));
- return 200;
- }
+ if (!options.Keys.Where(x => requiredOptions.Contains(x, StringComparer.InvariantCultureIgnoreCase)).Any())
+ {
+ Console.WriteLine(Strings.Program.DeleteCommandNeedsOptions("delete", requiredOptions));
+ return 200;
+ }
- using(var i = new Library.Main.Controller(args[0], options, new ConsoleOutput(options)))
- {
- args.RemoveAt(0);
- var res = i.Delete();
+ using(var i = new Library.Main.Controller(args[0], options, new ConsoleOutput(options)))
+ {
+ args.RemoveAt(0);
+ var res = i.Delete();
- if (res.DeletedSets.Count() == 0)
- {
- Console.WriteLine(Strings.Program.NoFilesetsMatching);
- }
- else
- {
- if (res.Dryrun)
- Console.WriteLine(Strings.Program.WouldDeleteBackups);
- else
- Console.WriteLine(Strings.Program.DeletedBackups);
-
- foreach(var f in res.DeletedSets)
- Console.WriteLine(string.Format("{0}: {1}", f.Item1, f.Item2));
- }
+ if (res.DeletedSets.Count() == 0)
+ {
+ Console.WriteLine(Strings.Program.NoFilesetsMatching);
+ }
+ else
+ {
+ if (res.Dryrun)
+ Console.WriteLine(Strings.Program.WouldDeleteBackups);
+ else
+ Console.WriteLine(Strings.Program.DeletedBackups);
+
+ foreach(var f in res.DeletedSets)
+ Console.WriteLine(string.Format("{0}: {1}", f.Item1, f.Item2));
+ }
}
return 0;