SimpleCommandLineParser

Overview

Parser for an array of arguments, splitting it into switches (--a) settings (--b=4) and other parameters.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL

Properties


OtherParameters

Other non-switch parameters.

 

property OtherParameters: ImmutableList<String> read;

 

ImmutableList<String> OtherParameters { get; }

 

var OtherParameters: ImmutableList<String> { get{} }

 

ImmutableList<String> OtherParameters { __get; }

Settings

Settings parameters, in the form of --a=b

 

property Settings: ImmutableDictionary<String, String> read;

 

ImmutableDictionary<String, String> Settings { get; }

 

var Settings: ImmutableDictionary<String, String> { get{} }

 

ImmutableDictionary<String, String> Settings { __get; }

Switches

Switch parameters, settings without values.

 

property Switches: ImmutableDictionary<String, String> read;

 

ImmutableDictionary<String, String> Switches { get; }

 

var Switches: ImmutableDictionary<String, String> { get{} }

 

ImmutableDictionary<String, String> Switches { __get; }

Instance Methods


constructor init ToffeeV2

Parses the array of strings into parts.

 

func constructor init(_ aArgs: String...)

Parameters:

  • aArgs:

constructor .NET, .NET Standard 2.0, Cooper, Island, Toffee

Parses the array of strings into parts.

 

constructor(aArgs: not nullable array of String)

 

SimpleCommandLineParser(String[]! aArgs)

 

init(_ aArgs: String...)

 

SimpleCommandLineParser(String[]! aArgs)

Parameters:

  • aArgs: