Class CommandLineContext
- Namespace
- McMaster.Extensions.CommandLineUtils.Abstractions
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Contains information about the execution context of the command-line application.
public abstract class CommandLineContext
- Inheritance
-
objectCommandLineContext
Properties
Arguments
The arguments as provided in Program.Main.
public string[] Arguments { get; protected set; }
Property Value
- string[]
Remarks
Cannot be null.
Console
The console.
public IConsole Console { get; protected set; }
Property Value
Remarks
Cannot be null.
WorkingDirectory
The current working directory. Defaults to GetCurrentDirectory()
public string WorkingDirectory { get; protected set; }
Property Value
Remarks
Cannot be null, and must be an absolute file path.