Gambas Documentation - /comp/gb.option/getoptions/getargument

/comp/gb.option/getoptions/getargument

# GetOptions.GetArgument (gb.option)

Function GetArgument ( Option As String ) As String[]

Returns the argument(s) of Option

### Examples

    ./options-sample.gambas -a file1 -a file2

    Dim OptionsClass As New GetOptions("a:")

    Dim sElement As String

    For Each sElement In OptionsClass.GetArgument("a")
        Print sElement
    Next

    file1
    file2