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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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