[Gambas-user] gbs script version

Bruce Steers bsteers4 at gmail.com
Tue Feb 16 19:18:32 CET 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210216/21b2bb39/attachment.htm>


More information about the User mailing list