-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOptions.cs
58 lines (44 loc) · 1.65 KB
/
Options.cs
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* Created by SharpDevelop.
* User: Thomas
* Date: 2016-08-17
* Time: 14:45
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using CommandLine;
namespace nql
{
class Options {
public static Options Current = new Options();
[Option(HelpText="Use external CompileROM.lua")]
public string romscript { get; set; }
[Option(HelpText="Use custom mapfile, scalarmap.lua")]
public string map { get; set; }
[Option(DefaultValue="localhost", HelpText="rcon hostname to direct-insert blueprint")]
public string rconhost { get; set; }
[Option(DefaultValue=12345, HelpText="rcon port to direct-insert blueprint")]
public int rconport { get; set; }
[Option(HelpText="rcon password to direct-insert blueprint")]
public string rconpass { get; set; }
[Option(HelpText="rcon player name to direct-insert blueprint")]
public string rconplayer { get; set; }
[Option("symtable", HelpText = "print symbol table")]
public bool symtable { get; set; }
[Option("typeinfo", HelpText = "print type info")]
public bool typeinfo { get; set; }
bool _func;
[Option(HelpText = "print functions")]
public bool func { get { return _func || funcbody || funcbodyraw; } set { _func = value; } }
[Option("funcbody", HelpText = "print parsed function bodies")]
public bool funcbody { get; set; }
[Option(HelpText = "print compiled function bodies")]
public bool funcbodyraw { get; set; }
[Option(HelpText = "print raw compiled ROM data")]
public bool dumprom { get; set; }
[ValueList(typeof(List<string>))]
public List<string> sourcefiles {get;set;}
}
}