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.
int Run(params IEnumerable<string> args)
Parameters
argsIEnumerable<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.