summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.UITest.TestCloud/Mono.Options/ResponseFileSource.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.UITest.TestCloud/Mono.Options/ResponseFileSource.cs')
-rw-r--r--Xamarin.Forms.UITest.TestCloud/Mono.Options/ResponseFileSource.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Xamarin.Forms.UITest.TestCloud/Mono.Options/ResponseFileSource.cs b/Xamarin.Forms.UITest.TestCloud/Mono.Options/ResponseFileSource.cs
new file mode 100644
index 00000000..881a384e
--- /dev/null
+++ b/Xamarin.Forms.UITest.TestCloud/Mono.Options/ResponseFileSource.cs
@@ -0,0 +1,25 @@
+using System.Collections.Generic;
+
+namespace Mono.Options
+{
+ public class ResponseFileSource : ArgumentSource
+ {
+ public override string Description => "Read response file for more options.";
+
+ public override string[] GetNames()
+ {
+ return new[] { "@file" };
+ }
+
+ public override bool GetArguments(string value, out IEnumerable<string> replacement)
+ {
+ if (string.IsNullOrEmpty(value) || !value.StartsWith("@"))
+ {
+ replacement = null;
+ return false;
+ }
+ replacement = GetArgumentsFromFile(value.Substring(1));
+ return true;
+ }
+ }
+} \ No newline at end of file