Table of Contents

HelpContext Class

Definition

Namespace
DotMake.CommandLine.Help
Assembly
DotMake.CommandLine.dll

Supports formatting command line help.

public class HelpContext
Inheritance
HelpContext

Constructors

HelpContext(HelpBuilder, Command, TextWriter, ParseResult)

Properties

Command

The command for which help is being formatted.

HelpBuilder

The help builder for the current operation.

Output

Gets the standard output stream wrapped by a CLI writer that provides styled terminal output (color and text decoration), using ANSI escape sequences when supported and console-native fallbacks otherwise.

The standard output can be used to write non-error information during the current invocation.

By default, Out with encoding set to UTF8, is wrapped. The underlying stream can be changed via Output.

ParseResult

The result of the current parse operation.