You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the AnonymousSynchronousCommandLineAction / AnonymousAsynchronousCommandLineAction classes (which are used in the SetAction methods) could be public. So the user can write this:
defaultHelpOption.Action = new AnonymousSynchronousCommandLineAction(parseResult =>
{
Console.WriteLine("HEADER");
return oldAction.Invoke(parseResult);
});
or replace the XXCommandLineAction classes with just simple delegates:
public delegate int SynchronousCommandLineAction(ParseResult parseResult);
public delegate Task<int> AsynchronousCommandLineAction(ParseResult parseResult, CancellationToken cancellationToken);
add helper methods to the root command which returns the Help and VersionOptions
Activity
[-]Make the help customiztaion "easa.ier"[/-][+]Make the help customiztaion "easier"[/+]jonsequitur commentedon Oct 9, 2025
Related: #2588