Search Results for

    Show / Hide Table of Contents

    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 Source

    Arguments

    The arguments as provided in Program.Main.

    Declaration
    public string[] Arguments { get; protected set; }
    Property Value
    Type Description
    System.String[]
    Remarks

    Cannot be null.

    | Improve this Doc View Source

    Console

    The console.

    Declaration
    public IConsole Console { get; protected set; }
    Property Value
    Type Description
    IConsole
    Remarks

    Cannot be null.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top