C# Class Microsoft.Iot.IotCoreAppDeployment.CommandLineParser

Datei anzeigen Open project: ms-iot/iot-utilities Class Usage Examples

Public Methods

Method Description
AddHelpArgument ( string argNames, string helpMsg ) : void
AddOptionalArgumentWithInput ( string argName, string helpMsg, string>.Action handler ) : void
AddOptionalArgumentWithoutInput ( string argName, string helpMsg, string>.Action handler ) : void
AddRequiredArgumentWithInput ( string argName, string helpMsg, string>.Action handler ) : void
CommandLineParser ( DeploymentWorker worker ) : System
HandleCommandLineArgs ( string args ) : bool

Private Methods

Method Description
AddArgument ( string argNames, string helpMsg, bool consumesNextArg, bool required, bool isHelp, string>.Action handler ) : void
OutputHelpMessage ( ) : void
OutputHelpMessage ( ArgumentHelper option, bool required, bool input ) : void

Method Details

AddHelpArgument() public method

public AddHelpArgument ( string argNames, string helpMsg ) : void
argNames string
helpMsg string
return void

AddOptionalArgumentWithInput() public method

public AddOptionalArgumentWithInput ( string argName, string helpMsg, string>.Action handler ) : void
argName string
helpMsg string
handler string>.Action
return void

AddOptionalArgumentWithoutInput() public method

public AddOptionalArgumentWithoutInput ( string argName, string helpMsg, string>.Action handler ) : void
argName string
helpMsg string
handler string>.Action
return void

AddRequiredArgumentWithInput() public method

public AddRequiredArgumentWithInput ( string argName, string helpMsg, string>.Action handler ) : void
argName string
helpMsg string
handler string>.Action
return void

CommandLineParser() public method

public CommandLineParser ( DeploymentWorker worker ) : System
worker DeploymentWorker
return System

HandleCommandLineArgs() public method

public HandleCommandLineArgs ( string args ) : bool
args string
return bool