[Gambas-user] please, need help with gb.option

Benoit Minisini gambas at ...1...
Mon Jun 2 20:07:43 CEST 2008


On lundi 02 juin 2008, rospolosco at ...152... wrote:
> [Second request]
>
> Please, could someone provide a little code to show me
> how to use gb.option component.
> I need an example application that accepts options
> "-a -b -c" and print their arguments. I mean:
>
> example.gambas -a test -b foo -c bar
>
> result on console:
>
> "-a" argument is "test"
> "-b" argument is "foo"
> "-c" argument is "bar"
>
> Then, I would like to know if with gb.option an option
> could take multiple args. i.e: -a foo bar -b test
>
> I googled a lot and searched in the Gambas documentation,
> but I can't find any example. Thanks.
>
> Regards,
>
> Stefano
>

The component was made by Chintan Rao, and I never used it myself. Search in 
the developer mailing-list archive for his posts, you will find some 
information about the component.

Regards,

-- 
Benoit Minisini




More information about the User mailing list