ParentCommandOnAfterParsing Method

Function called after parsing, on success, cancellation, and failure.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
protected virtual void OnAfterParsing(
	CommandLineParser? parser,
	ICommand? childCommand
)

Parameters

parser  CommandLineParser
The CommandLineParser instance for the nested subcommand, or if the nested subcommand used the ICommandWithCustomParsing interface.
childCommand  ICommand
The created subcommand class, or if a failure or cancellation was encountered.

Remarks

The base class implementation writes any error message, and usage help for the nested subcommand if applicable. On success, or for nested subcommands using the ICommandWithCustomParsing interface, it does nothing.

See Also