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>2014-05-12 11:34:10 +0400
committerKenneth Skovhede <kenneth@hexad.dk>2014-05-12 11:34:10 +0400
commitae40de105cf046e7b6528b8b88cd4711b304d526 (patch)
tree7ca477e086d731ad2e3bb3c499d0f8e995a00d9b /Duplicati/CommandLine/Help.cs
parent3bb517ff1b59b850c565060e8a3a98b453e52534 (diff)
Fixed allowing --include and --exclude to the help command
Diffstat (limited to 'Duplicati/CommandLine/Help.cs')
-rw-r--r--Duplicati/CommandLine/Help.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/Duplicati/CommandLine/Help.cs b/Duplicati/CommandLine/Help.cs
index 48d720515..77ad3dab6 100644
--- a/Duplicati/CommandLine/Help.cs
+++ b/Duplicati/CommandLine/Help.cs
@@ -65,13 +65,22 @@ namespace Duplicati.CommandLine
System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.InvariantCulture;
}
- catch { }
+ catch
+ {
+ }
if (string.IsNullOrWhiteSpace(topic))
topic = "help";
- if (string.Equals("help", topic, StringComparison.InvariantCultureIgnoreCase) && options.Count == 1)
- topic = new List<string>(options.Keys)[0];
+ if (string.Equals("help", topic, StringComparison.InvariantCultureIgnoreCase))
+ {
+ if (options.Count == 1)
+ topic = new List<string>(options.Keys)[0];
+ else if (System.Environment.CommandLine.IndexOf("--exclude", StringComparison.InvariantCultureIgnoreCase) >= 0)
+ topic = "exclude";
+ else if (System.Environment.CommandLine.IndexOf("--include", StringComparison.InvariantCultureIgnoreCase) >= 0)
+ topic = "include";
+ }
if (_document.ContainsKey(topic))