forked from kendarorg/RepositoryCache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.cs
More file actions
34 lines (32 loc) · 1.19 KB
/
Options.cs
File metadata and controls
34 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using CommandLine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RepositoryCache
{
public class Options
{
#if DEBUG
[Option("port", Default = 9088, HelpText = "Port.")]
#else
[Option("port", Default = 9080, HelpText = "Port.")]
#endif
public int Port { get; set; }
[Option("host", Default = null, HelpText = "Host.")]
public string Host { get; set; }
[Option("logrequests", Default = false, HelpText = "Log requests.")]
public bool LogRequests { get; set; }
[Option("showintray", Default = false, HelpText = "Log requests.")]
public bool ShowInTray { get; set; }
[Option("path", Default = "", HelpText = "Root to service.")]
public string Path { get; set; }
[Option("urls", Default = null, HelpText = "Urls to proxy.")]
public IEnumerable<string> Urls { get; set; }
[Option("ignore", Default = null, HelpText = "Urls to ignore.")]
public IEnumerable<string> Ignores { get; set; }
[Option("settings", Default = null, HelpText = "Settings file.")]
public string Settings { get; set; }
}
}