[Gambas-user] gbs script version

Brian G brian at westwoodsvcs.com
Tue Feb 16 21:00:20 CET 2021


I have added a preprocess to set the version number
--
Thanks
Brian Tuesday, 16 February 2021, 10:19AM -08:00 from Bruce Steers  bsteers4 at gmail.com :

>
>
>On Tue, 16 Feb 2021 at 17:52, Benoît Minisini < g4mba5 at gmail.com> wrote:
>>Le 16/02/2021 à 18:40, Bruce Steers a écrit :
>
>      I've submitted a merge request for a simple change to gb.args to fix
>      this if it's okay with you.
>      It sets  $bVersionChecked to true if user has used Args.Has() to
>      check -V and stops --help printing built in version message if so.
>
>
> I can think of other reasons overriding gb.args version for DIY could be 
> useful..
>
> Eg.
> *If Args.Has("V", "version" , "Display version and state") Then*
> * Print Application.Version & Iif($bAppIsBetaStage, " (Beta)", " (Stable)")
> *
> *Endif*
>
> Other things i thought were if Application.Version was read/write that 
> would fix the gbs versioning as could be set at script start
> Wishing well
> BruceS
>
>>
>>To be logical, you should check the override of "-h" too. Someone may 
>>want to display its own help instead of the default one.
>>
>
>yes i did consider that , I was not sure if you would accept the modification but if you think it's okay i have re-submitted with both help and version override.
>
>Thank you
>BruceS
>
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210216/f95bedcb/attachment-0001.htm>


More information about the User mailing list