Class CommandLineContext
Contains information about the execution context of the command-line application.
Inheritance
System.Object
    CommandLineContext
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  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.