[Gambas-user] Question about gb.args

Bruce bbruen at ...2308...
Thu Nov 29 06:12:02 CET 2012


On Thu, 2012-11-29 at 05:30 +0100, Willy Raets wrote:
> I has a quick look at the documentation of gb.args.
> 
> As I understand it gb.args is able to return version of an applicatiosn.
> Like if I have a GUI Gambas app named MyApp in /usr/bin/ a MyApp
> --version should return version of the installed application.
> 
> Documentation says:
> Automatically handle --version and --help options.
> 
> Does automatically mean I only need to enable the component and app will
> return version info when doing MyApp --version
> OR
> Does this mean I have to do some coding to make it work? And how would
> that look like?
> AND
> I guess for help you would need to provide something to show? How would
> that have to be implemented?
> 
> Haven't got a trunk version installed right now to try, but will install
> one in VM as soon as time. Meanwhile investigating the matter :-)
> 
> Thanks,
> 
> Willy
> 

Here's a very quick demo.

make executable, then Ctl+Alt+T then try
[....]$ ./demo_gbargs.gambas
[....]$ ./demo_gbargs.gambas -V
[....]$ ./demo_gbargs.gambas -t 3 -c helloworld.c -r temp.text out.text
etc

hth
Bruce

-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo_gbargs-8.64.34257.tar.gz
Type: application/x-compressed-tar
Size: 5487 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121129/10f9a59d/attachment.bin>


More information about the User mailing list