Table of Contents

Method Run

Namespace
Ploch.CommandLine.Spectre
Assembly
Ploch.CommandLine.Spectre.dll

Run(params IEnumerable<string>)

Executes the command-line application synchronously with the specified arguments.

public int Run(params IEnumerable<string> args)

Parameters

args IEnumerable<string>

Collections of command-line arguments to pass to the application.

Returns

int

An integer representing the exit code of the application, where 0 typically indicates success.

Exceptions

InvalidOperationException

Thrown when this executor has already been used; see the class remarks.