Class CommandLineContext
Contains information about the execution context of the command-line application.
Inheritance
System.Object
CommandLineContext
Namespace: McMaster.Extensions.CommandLineUtils.Abstractions
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public abstract class CommandLineContext
Properties
| Improve this Doc View SourceArguments
The arguments as provided in Program.Main.
Declaration
public string[] Arguments { get; protected set; }
Property Value
Type | Description |
---|---|
System.String[] |
Remarks
Cannot be null.
Console
The console.
Declaration
public IConsole Console { get; protected set; }
Property Value
Type | Description |
---|---|
IConsole |
Remarks
Cannot be null.
WorkingDirectory
The current working directory. Defaults to System.IO.Directory.GetCurrentDirectory
Declaration
public string WorkingDirectory { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Cannot be null, and must be an absolute file path.