Lib_CLI

This library allows to manage parameters when you create a program to run from CLI.

For example, the following command has some parameters when called

the parameter in this case is the ‘couple keyword=value’ -exclude


The library uses a very simple syntax, as follows

in this case there are 2 keys (NAME and VALUE) both with a specific value (my_name and my_value).
Each couple KEY/VALUE is separated by a space.

To start, we need to initialize the ‘interface’ using the function TCliPar.Init()

Now we can access to the methods to read keys and values

This gets the number of parameters present in the command line.

Returns an array with all the parameters passed (like AppArgs)

Returns an array with the KEYS (ie: NAME and VALUE)

Returns an array with the VALUES (ie: my_name and my_value)

Returns the value for the key specified (‘name’ in this case)

Returns an array of INT assuming that the key ‘value’ has more values in it, separated by commas (ie: VALUE=10,20,30)

Returns an array of STRING assuming that the key ‘value’ has more values in it, separated by commas (ie: VALUE=10,20,30)


local_offerevent_note April 28, 2019

account_box degac

Leave a Reply

Your email address will not be published.