BadScript 2
Loading...
Searching...
No Matches
BadRunSystemSettings.cs
Go to the documentation of this file.
1using CommandLine;
2
4
9{
13 [Option('f', "files", Required = false, HelpText = "The files to run.")]
14 public IEnumerable<string> Files { get; set; } = Enumerable.Empty<string>();
15
19 [Option('i', "interactive", Required = false, HelpText = "Run in interactive mode.")]
20 public bool Interactive { get; set; }
21
25 [Option('a', "args", Required = false, HelpText = "Arguments to pass to the script.")]
26 public IEnumerable<string> Args { get; set; } = Enumerable.Empty<string>();
27
31 [Option('b', "benchmark", Required = false, HelpText = "Set flag to Measure Execution Time.")]
32 public bool Benchmark { get; set; }
33
37 [Option('d', "debug", Required = false, HelpText = "Set flag to Attach a Debugger.")]
38 public bool Debug { get; set; }
39
43 [Option(
44 'r',
45 "remote",
46 Required = false,
47 HelpText = "Specifies the Remote Console Host port. If not specified the remote host will not be started"
48 )]
49 public int RemotePort { get; set; } = -1;
50}
bool Benchmark
If Enabled, the execution time will be printed to the console.
int RemotePort
If specified, the Run System will try to host a remote shell on the specified port.
IEnumerable< string > Files
The Files that will be executed.
bool Interactive
If Enabled, the Console will be started in interactive mode.
IEnumerable< string > Args
The Commandline Arguments for the Scripts.
bool Debug
If enabled, the debugger will be attached to the process.
Contains the 'run' console command implementation.