sun::cli::EarlyExit

sun::cli::EarlyExit

struct · Source (opens in a new tab)

struct sun::cli::EarlyExit

A command line that ends the run before any command starts: help, version, or a mistake such as an unknown flag.

It names the text to print, the stream to print it on, and the process exit code.

Public Fields

exitCode

public · variable · Source (opens in a new tab)

int sun::cli::EarlyExit::exitCode = 0

No documentation comment.

stream

public · variable · Source (opens in a new tab)

Stream sun::cli::EarlyExit::stream = Stream::Err

No documentation comment.

Related: Stream, Stream::Err

text

public · variable · Source (opens in a new tab)

std::string sun::cli::EarlyExit::text

No documentation comment.

Public Enums

Stream

public · enum · Source (opens in a new tab)

enum class sun::cli::EarlyExit::Stream

Selects the output stream used for an early-exit message.

Out

Out

No documentation comment.

Err

Err

No documentation comment.