Open dswisher opened 2 years ago
Funny. I got the code working that ported over to CommandLineParser
, only to find that it works exactly the same way.
The only remaining issue is finding a way to get a CancellationToken
into the ExecAsync
method. There seems to be a couple of plausible workarounds here.
The Spectre.Console.Cli parser is a bit too opinionated for my taste, requiring that options only appear after arguments. Switch to CommandLineParser.
As an example,
gup fetch .. --dry-run
is accepted, butgup fetch --dry-run ..
is not.