Skip to content

IExtensionCommandLine Interface

Interface extensions implement to be able to parse the command-line.

MethodDescription
GetCommandLineHelp()Gets the help for this extension.
PostParse()Called after the command-line is parsed.
PreParse(context)Called before the command-line is parsed.
TryParseArgument(parser, argument)Gives the extension an opportunity pass a command-line argument for another command.
WixToolset.Extensibility.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Gets the help for this extension.

public Data.CommandLineHelp GetCommandLineHelp()

Called after the command-line is parsed.

public void PostParse()

Called before the command-line is parsed.

public void PreParse(
Data.ICommandLineContext context
)
ParameterTypeDescription
contextData.ICommandLineContextInformation about the command-line to be parsed.

Gives the extension an opportunity pass a command-line argument for another command.

public bool TryParseArgument(
Services.ICommandLineParser parser,
string argument
)
ParameterTypeDescription
parserServices.ICommandLineParserParser to help parse the argument and additional arguments.
argumentstringArgument to parse.

bool True if the argument is recognized; otherwise false to allow another extension to process it.