Run(IEnumerable<string>, CancellationToken) Method
Runs the command line application with specified arguments.
int Run(IEnumerable<string> args, CancellationToken cancellationToken = default(CancellationToken))
- Namespace
- Spectre
.Console .Cli - Containing Type
- ICommandApp
Parameters
-
IEnumerable
<string> args - The arguments.
- CancellationToken cancellationToken
- A
System.Threading.CancellationToken
that can be used to abort the application.
Returns
- int