Gambas Documentation - /comp/gb.option/getoptions

/comp/gb.option/getoptions

# GetOptions (gb.option)

This class is
Dim hGetOptions As GetOptions
creatable
.
This class acts like a
Dim hGetOptions As GetOptions Dim aVariant As Variant
read-only
array.

Properties | Methods
--- | ---

property Read CommandLineArgs As String
CommandLineArgs

Function GetAllOptions ( ) As String Returns a list of all command line options without the score.
GetAllOptions
Function GetArgument ( Option As String ) As String[] Returns the argument(s) of Option
GetArgument
GetErrorOption NextValidOption
Function OptionArgument ( ) As String
OptionArgument
Function RestOfArgs ( ) As String Returns a list of all command line arguments, in the order they were written.
RestOfArgs