[Gambas-user] Args help , most other places is -?

Bruce Steers bsteers4 at gmail.com
Wed Jun 29 13:51:45 CEST 2022


I just noticed something in the Args.class

Help is checked like this..

    If Has("h", "help", ("Display this help")) Then

I have noticed most other software uses -? not -h as the short name.

I've edited gb.args Args.Has to be able to use more than one char for
shortname

Eg..
Args.Has("?h", "help", "Show this help")

will work with either -?  or -h

What do you think Ben?
I've submitted a merge request..

Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220629/4bc371b5/attachment.htm>


More information about the User mailing list