forked from scriptcs/scriptcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptCsArgs.cs
More file actions
80 lines (61 loc) · 2.8 KB
/
ScriptCsArgs.cs
File metadata and controls
80 lines (61 loc) · 2.8 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using System;
using PowerArgs;
using ScriptCs.Contracts;
namespace ScriptCs
{
[Serializable]
[ArgExample("scriptcs server.csx -logLevel debug", "Shows how to run the script and display detailed log messages. Useful for debugging.")]
public class ScriptCsArgs
{
public ScriptCsArgs()
{
LogLevel = LogLevel.Info;
Config = Constants.ConfigFilename;
}
[ArgDescription("Launch REPL mode when running script. To just launch REPL, simply use 'scriptcs' without any args.")]
public bool Repl { get; set; }
[ArgPosition(0)]
[ArgShortcut("script")]
[ArgDescription("Script file name, must be specified first")]
public string ScriptName { get; set; }
[ArgShortcut("?")]
[ArgDescription("Displays help")]
public bool Help { get; set; }
[DefaultValue(false)]
[ArgDescription("Emits PDB symbols allowing for attaching a Visual Studio debugger")]
public bool Debug { get; set; }
[DefaultValue(false)]
[ArgDescription("Flag which determines whether to run in memory or from a .dll")]
public bool Cache { get; set; }
[ArgIgnoreCase]
[ArgShortcut("log")]
[DefaultValue(LogLevel.Info)]
[ArgDescription("Flag which defines the log level used.")]
public LogLevel LogLevel { get; set; }
[ArgDescription("Installs and restores packages which are specified in packages.config")]
public string Install { get; set; }
[ArgShortcut("g")]
[ArgDescription("Installs and restores global packages which are specified in packages.config")]
public bool Global { get; set; }
[ArgDescription("Creates a packages.config file based on the packages directory")]
public bool Save { get; set; }
[ArgDescription("Cleans installed packages from working directory")]
public bool Clean { get; set; }
[ArgShortcut("pre")]
[ArgDescription("Allows installation of packages' prelease versions")]
public bool AllowPreRelease { get; set; }
[ArgDescription("Outputs version information")]
public bool Version { get; set; }
[ArgDescription("Watch the script file and reload it when changed")]
public bool Watch { get; set; }
[ArgDescription("Specify modules to load")]
public string Modules { get; set; }
[DefaultValue(Constants.ConfigFilename)]
[ArgDescription("Defines config file name")]
public string Config { get; set; }
[ArgDescription("Defines the version of the package to install. Used in conjunction with -install")]
public string PackageVersion { get; set; }
[ArgDescription("Write all console output to the specified file")]
public string Output { get; set; }
}
}