Gambas Documentation - /comp/gb.args/args/get

/comp/gb.args/args/get

# Args.Get (gb.args)

Static Function Get ( ShortName As String, LongName As String [ , Description As String, ArgName As String ] ) As String

Define an option that takes one string argument, and return it.

- ShortName is the short name of the option without the dash. (i.e. `"o"` for `-o`).

- LongName is the full name of the option without the two dashes (i.e. `"option"` for `--option`).

- Description is an optional text that describes the option. This will be used if the `--help` option is requested.

- ArgName is the name of the option argument used by the `--help` option.